Commit Graph

797 Commits

Author SHA1 Message Date
Nikolay Yakimov
11a1ad2cf3 Fix mapping subst in info for insts add type fams 2016-03-15 22:09:06 +03:00
Nikolay Yakimov
dcaf95b4e3 Fix file-map for case-split 2016-03-15 21:43:27 +03:00
Nikolay Yakimov
432f8bfd93 [Type-constraints] Comments on collectSpansTypes
Also some minor code cleaning
2016-03-14 22:12:04 +03:00
Nikolay Yakimov
8e33dbd88d [Browse] Option to show symbol parents
E.g. Nothing is a constructor of Maybe, so it has
parent Maybe.

This is useful for completion, e.g. with `(..)` imports
2016-03-14 21:22:55 +03:00
Daniel Gröber
59ade0d447 Add more version information to debug command 2016-03-09 21:56:23 +01:00
Nikolay Yakimov
2f82d5cdf4 Change loadTargets stderr loglevel to Debug
Closes #763
2016-03-03 23:06:39 +03:00
Nikolay Yakimov
8fa928d9dd Merge branch 'master' into fix-sig 2016-03-02 01:12:47 +03:00
Nikolay Yakimov
677e5ab81f Merge branch 'master' into fix-sig 2016-03-02 00:28:28 +03:00
Nikolay Yakimov
2feaf14325 Merge branch 'master' into find-cache-master 2016-03-02 00:25:30 +03:00
Alan Zimmerman
f992200d57 Remove CPP from Options
As per @lierdakil suggestion
2016-03-01 22:58:10 +02:00
Alan Zimmerman
04b75e2bde Sort out imports for earlier GHC versions 2016-02-29 21:24:30 +02:00
Alan Zimmerman
45eb3b8d4c Do not use deprecated API for parseCmdLineOptions
Thanks to @lierdakil
2016-02-29 20:45:32 +02:00
Alan Zimmerman
4aef60940e Merge branch 'master' into opts-in-lib 2016-02-29 17:41:41 +02:00
Moritz Kiefer
4874bc914b Add Ord instances for Cradle 2016-02-16 21:44:10 +01:00
Alan Zimmerman
85df08a913 Add a argument parser and some haddocks
I am not sure if I have set the ParserInfo up correctly, I have never
used it before.
2016-02-15 22:04:47 +02:00
Alan Zimmerman
c9e5a20a3e Merge remote-tracking branch 'dxld/master' into opts-in-lib 2016-02-15 15:56:55 +02:00
Daniel Gröber
d3f66500ed Fix some warnings (ghc 8) 2016-02-14 12:35:57 +01:00
Daniel Gröber
be6ba3f875 Merge remote-tracking branch 'pikajude/ghc-8' 2016-02-14 12:35:29 +01:00
Daniel Gröber
2f1681e481 Fix DynFlagsTH for GHC 8 2016-02-14 12:24:49 +01:00
Daniel Gröber
4f289fc4e4 Fix older GHCs 2016-02-14 10:10:26 +01:00
Daniel Gröber
2e4c2b5228 Check session validity via equality on DynFlags 2016-02-14 08:42:45 +01:00
Alan Zimmerman
5f070b8428 Rebalance between lib and exe 2016-02-09 22:24:46 +02:00
Alan Zimmerman
d47c9f1205 Merge branch 'master' into opts-in-lib 2016-02-09 21:22:15 +02:00
Nikolay Yakimov
69727f24fa Fix output encoding in loadMappedFileSource 2016-02-09 16:27:24 +03:00
Nikolay Yakimov
8105f14f2c Add option for stdio encoding, set stdin encoding 2016-02-09 12:38:12 +03:00
Alan Zimmerman
b1d123c4b6 Fix tests, export parser spec 2016-02-08 23:02:31 +02:00
Alan Zimmerman
1cc97db24f Move the CLI parser definitions into the lib
So they can be used by library clients to parse and pass in the
appropriate ghc-mod Options.
2016-02-08 22:34:20 +02:00
Jude Taylor
ed867fea3e remove double location in error message 2016-02-06 10:02:01 -08:00
Jude Taylor
8ef0f52199 GHC 8 readiness 2016-02-04 10:54:55 -08:00
Nikolay Yakimov
2f1e586fea Remove worldSymbolCache from World 2016-01-27 02:09:26 +03:00
Nikolay Yakimov
1559a91a84 Cache non-interactive find results in distdir 2016-01-27 02:09:17 +03:00
Nikolay Yakimov
9b88b71f4d Fix sig command
Fixes #704
2016-01-26 23:54:17 +03:00
Nikolay Yakimov
bca7748264 [Type-constraints] Do not duplicate constraints 2016-01-20 03:12:21 +03:00
Nikolay Yakimov
8449d36eca [Type-constraints] Generalize some code, cleanup 2016-01-20 02:23:51 +03:00
Nikolay Yakimov
0c5da02d52 [Type-constraints] Add an option to toggle this 2016-01-20 01:29:33 +03:00
Nikolay Yakimov
aedc6b6b31 [Type-constraints] everythingStagedWithContext
This is required for GHC<7.10 due to a panic
2016-01-20 01:00:13 +03:00
Nikolay Yakimov
4e4eff7bdb [Type-constraints] Remove tidyTopType
It didn't do much anyway
2016-01-20 00:10:18 +03:00
Nikolay Yakimov
fde7bafe56 [Type-constraints] Fix type variable substitution 2016-01-20 00:02:23 +03:00
Nikolay Yakimov
39659b2917 [Type-constraints] Removed unnecessary definitions 2016-01-19 22:53:07 +03:00
Nikolay Yakimov
960a49c1ed [Type-constraints] Marginally better version
* Instead of listify, it walks the tree instead, so that constraints are only visible in relevant context.
* Uses Map instead of [(,)]
* Performs type substitutions in case of one child identifier found (relevant for constructor bindings)
2016-01-19 22:50:14 +03:00
Nikolay Yakimov
549d3e1006 [Type-constraints] Compounds type substitution 2016-01-18 09:02:28 +03:00
Nikolay Yakimov
966c694dbf [Type-constraints] Initial attempt at compounds
I try to compute constraints for "compound" types.
While constraint-building itself is simple, types
do not match due to different representation
between 'internal' and 'exported' signatures.
2016-01-18 07:09:14 +03:00
Nikolay Yakimov
88f61724d4 [Type-constraints] Proof-of-concept 2016-01-18 07:09:14 +03:00
Daniel Gröber
566dbebe29 Merge release-5.5.0.0 into master (using imerge) 2016-01-17 21:03:28 +01:00
Daniel Gröber
17c4f91812 add TODO for HMG 2016-01-17 20:19:08 +01:00
Daniel Gröber
d29c882cd6 Fix warning with 7.10 2016-01-17 20:19:08 +01:00
Daniel Gröber
54fe4a0edb Replace fromJust with fromJustNote everywhere 2016-01-13 04:56:39 +01:00
jpmoresmau
0974eec9a5 docs 2016-01-13 04:55:08 +01:00
Nikolay Yakimov
5425a09666 [#722] Get encoding from hlint options 2016-01-12 22:22:13 +03:00
Nikolay Yakimov
0a0cd8041e Set file encoding to uft8 in Lint
Fixes #722
2016-01-12 21:33:20 +03:00
Daniel Gröber
33e9751390 Fix writeAutogen when no systemwide ghc is installed (#660) 2016-01-10 22:19:33 +01:00
Daniel Gröber
363aa10fcd Fix GHC<7.10 2016-01-10 00:25:02 +01:00
Daniel Gröber
3bba2d1be9 Fix warning 2016-01-09 23:39:42 +01:00
Daniel Gröber
49b5c4bb2d Fix severity prefix doubling (#689) 2016-01-09 23:22:27 +01:00
Daniel Gröber
bb3333efe3 Cleanup logging in Cradle 2016-01-09 23:21:59 +01:00
Daniel Gröber
bae40cb614 Better field names for SymbolDb 2016-01-09 22:23:20 +01:00
Daniel Gröber
8b5bd1ae2b Merge branch 'btr-find' of https://github.com/atom-haskell/ghc-mod into release-5.5.0.0 2016-01-09 22:17:49 +01:00
Nikolay Yakimov
4ff819906d NFData ByteString instance for GHC-7.4 2016-01-09 18:51:57 +03:00
Nikolay Yakimov
68689bfcfd Use Binary for 'find' communication channel 2016-01-09 17:27:21 +03:00
Daniel Gröber
16b63cf22c Merge branch 'new-hlint' of https://github.com/atom-haskell/ghc-mod 2016-01-08 18:20:59 +01:00
Nikolay Yakimov
9b512c3e6b Gracefully fail if stack couldn't be initialized 2016-01-08 19:17:43 +03:00
Nikolay Yakimov
3700fa00e6 Fix dist/setup-config path in stack cradle init. 2016-01-08 19:17:43 +03:00
Daniel Gröber
89b1ac2d1e Optimize dumpsym maximum memory usage
This took ages to track down. Turns out GHC keeps references to all
loaded ModIfaces in the PackageInterfaceTable in ExternalPackageState
for caching. ExternalPackageState is in an IORef in HscEnv so
overwriting that with a copy from right after init improves things a
bit. Next I use unsafeInterleaveIO to load the ModIfaces as we serialize
the symbol table rather than before thus reducing the amount of memory
needed even more.
2016-01-08 16:58:40 +01:00
Nikolay Yakimov
da1c1bebb2 Use stdout pipe instead of temp.files in Find 2016-01-05 13:44:17 +03:00
Nikolay Yakimov
dfa0e7e31e Use new hlint API 2016-01-05 11:34:38 +03:00
Daniel Gröber
73863e0b00 Remove GMEWrongWorkingDirectory constructor 2016-01-04 21:44:49 +01:00
Daniel Gröber
7bbaa35f56 Reinstate cwd setup, this time with locking 2016-01-04 20:15:55 +01:00
Daniel Gröber
254f6a9a73 Get rid of landmine 2016-01-04 06:05:40 +01:00
Daniel Gröber
ec5a362179 Add AsyncSymbolDb to fix runGhcMod race condition for good 2016-01-04 05:27:31 +01:00
Daniel Gröber
d2f7df21df Fix instances for GHC<7.8 2016-01-04 01:23:46 +01:00
Daniel Gröber
67c9538f30 Fix 7.6 warning 2016-01-04 01:23:46 +01:00
Daniel Gröber
699ce178cb Split L.H.GM.Monad.Types module 2016-01-04 01:23:46 +01:00
Daniel Gröber
13632817a4 Make tempdirs less annoying 2015-12-30 14:24:56 +01:00
Daniel Gröber
cee8a29a54 Don't need type errors here 2015-12-28 13:59:59 +01:00
Daniel Gröber
28a0d26fe3 Fix GHC<7.10 2015-12-28 13:57:24 +01:00
Daniel Gröber
7374f1ba17 Add 'test' command for running QuickCheck props 2015-12-28 13:57:24 +01:00
Nikolay Yakimov
23416e9aeb Better error reporting, cleanup 2015-12-20 15:02:31 +03:00
Nikolay Yakimov
1c45404f74 Merge remote-tracking branch 'upstream/master' into interactive-shell-syntax 2015-12-20 13:55:22 +03:00
Nikolay Yakimov
63f05508b8 FileMapping library docs 2015-12-20 13:45:51 +03:00
Daniel Gröber
6de02ea470 Cleanup loadTarget logic 2015-12-16 00:24:14 +01:00
Nikolay Yakimov
cdaf586941 Haddock documentation 2015-12-07 19:57:33 +03:00
Nikolay Yakimov
b2fb54a356 Fix tests, move option records to Types module 2015-12-06 00:56:19 +03:00
Nikolay Yakimov
ad16b739eb Optparse-applicative 2015-12-05 23:55:12 +03:00
Nicolas Rolland
bff86be69f some refactoring 2015-11-27 11:15:25 +01:00
Nicolas Rolland
e1d2de96c8 fixing tests for logging 2015-11-27 11:15:25 +01:00
Nicolas Rolland
1a8020774e adding Get logging level 2015-11-27 11:15:25 +01:00
Nicolas Rolland
d0ea69b61b handling logging level 2015-11-27 11:15:25 +01:00
Nicolas Rolland
06323ac20f adding logging to findCradle methods 2015-11-27 11:15:25 +01:00
Daniel Gröber
16c69b2743 Disable stack support for ghc <7.8 2015-11-26 19:21:15 +01:00
Daniel Gröber
1c0c97bdbb Typo 2015-11-26 16:31:53 +01:00
Daniel Gröber
0d97646694 Remove some redundant calls to withCabal
`chCached` already handles that
2015-11-26 16:19:50 +01:00
Daniel Gröber
412cee9abf Log exceptions in browse 2015-11-26 16:19:11 +01:00
Daniel Gröber
81a2d29cdc Fix ghc-7.4 build 2015-11-26 15:30:26 +01:00
Daniel Gröber
6f0b8b00d1 Add some missing copyright boilerplate 2015-11-26 15:03:14 +01:00
Daniel Gröber
4963b782d9 Don't fiddle with state in resolvedComps cacheAction
The general in-memory caching that was added to `cached` handles that
now making this fiddly workaround redundant.
2015-11-26 14:52:25 +01:00
Daniel Gröber
a12a7fabc0 Invalidate components cache when setup-config changed (Fix #684) 2015-11-26 14:52:25 +01:00
Daniel Gröber
604f2c18b0 Fix upper bounds on binary for ghc<7.10 2015-11-26 14:52:25 +01:00
Daniel Gröber
8568a6785c Check for in-memory cache invalidation (Fix #683) 2015-11-18 21:41:19 +01:00
Daniel Gröber
82f33cdbd7 Add modtime to on-disk and memory cache 2015-11-18 20:58:29 +01:00
Daniel Gröber
0c3587f388 Typo 2015-11-18 20:54:12 +01:00