Commit Graph

92 Commits

Author SHA1 Message Date
Alex Lang 50917f8cbe Fix the slow checking issue in interactive mode 2016-08-04 05:01:47 +02:00
Daniel Gröber d92eecbc90 Useless brackets 2016-07-17 23:33:23 +02:00
Daniel Gröber 01e3b8e3d6 Fix session caching, #807
also:
- cleanup LightGhc
- make the new DynFlags to compare against in a clean HscEnv
2016-07-16 03:45:43 +02:00
Daniel Gröber 3bf84fb64a Cleanup some redundant constraint warnings 2016-05-22 02:53:51 +02:00
Daniel Gröber 9eeaf09095 Merge branch 'master' into ghc-8 2016-05-17 20:21:25 +02:00
Nikolay Yakimov 2f82d5cdf4 Change loadTargets stderr loglevel to Debug
Closes #763
2016-03-03 23:06:39 +03:00
Nikolay Yakimov 677e5ab81f Merge branch 'master' into fix-sig 2016-03-02 00:28:28 +03:00
Daniel Gröber be6ba3f875 Merge remote-tracking branch 'pikajude/ghc-8' 2016-02-14 12:35:29 +01:00
Daniel Gröber 2e4c2b5228 Check session validity via equality on DynFlags 2016-02-14 08:42:45 +01:00
Jude Taylor 8ef0f52199 GHC 8 readiness 2016-02-04 10:54:55 -08:00
Nikolay Yakimov 9b88b71f4d Fix sig command
Fixes #704
2016-01-26 23:54:17 +03: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
Daniel Gröber 6de02ea470 Cleanup loadTarget logic 2015-12-16 00:24:14 +01:00
Daniel Gröber 1c0c97bdbb Typo 2015-11-26 16:31:53 +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 8568a6785c Check for in-memory cache invalidation (Fix #683) 2015-11-18 21:41:19 +01:00
Daniel Gröber 2549bba7b8 Fix yesterday's fix
we were invoking cabal-helper too early
2015-09-24 04:49:49 +02:00
Daniel Gröber df455a3618 Fix missing autogen files when dist/setup-config already exists (Issue #621) 2015-09-23 12:02:03 +02:00
Daniel Gröber 380acdaee0 Only use debugLogger when loglevel >= GmDebug 2015-09-16 05:13:20 +02:00
Daniel Gröber 64379a7c56 Actually update `world` in legacyInteractiveLoop 2015-09-11 09:53:24 +02:00
Daniel Gröber 211b957451 Fix race condition in stack support code 2015-09-11 03:52:28 +02:00
Daniel Gröber e92bd0af48 Disable obj loading for targets (Fix #554) 2015-09-10 07:48:13 +02:00
Daniel Gröber 6ad71af001 Don't swallow ghc's verbose output 2015-09-08 06:44:02 +02:00
Daniel Gröber 5713fd9908 Fix custom package-db stack for non Cabal projects 2015-09-07 07:20:16 +02:00
Daniel Gröber 86c157d1d2 Add some more debug output 2015-09-02 05:30:00 +02:00
Daniel Gröber 41de8b8b2e Sandwich new Monad layer GmOutT into transformer stack
This way we can have access to some options pre Cradle setup which
should fix the output interleaving problems I was observing.
2015-09-01 10:32:27 +02:00
Daniel Gröber 23a48aa6c7 Use cabal-helper for stack 2015-08-19 09:18:10 +02:00
Daniel Gröber 18a8c67d39 Take sandbox cfg into account for caches 2015-08-19 09:18:10 +02:00
Daniel Gröber 78bdf86a95 Fix all the stack related things 2015-08-19 09:17:41 +02:00
scturtle a285b42206 Refactor the hard-coding "dist" 2015-08-19 09:17:30 +02:00
scturtle 320b404a8c Yet another try to support Stack. 2015-08-19 09:17:11 +02:00
Alan Zimmerman e198f68f2a Rearrange loadTargets code.
The loadTargets function is exposed via the Internal module for use by
external programmes, such as HaRe.

Re-arrange to code so that it can still be called with a list of string
targets, as it was before.
2015-08-19 03:34:01 +02:00
Daniel Gröber bb3a948912 Fix over-qualified error messages (Fix #551) 2015-08-18 09:26:53 +02:00
Daniel Gröber f7149ba23f Cleanup 2015-08-18 04:50:51 +02:00
Daniel Gröber dd82cea996 Demote no-component-assignment warning to debug, Fix #552 2015-08-18 04:34:39 +02:00
Daniel Gröber a383f46939 Fix nasty module graph caching issue
resolvedComponentsCache did not consider outgoing edges in the module
graph when computing the set of dependent files

i.e. for `A -> B, A -> C` `flatten` would give [B,C] instead of [A,B,C]
2015-08-18 04:27:02 +02:00
Nikolay Yakimov a5dae2a82d Drop memory-mapped files, since ghc doesn't play well with those
All files are now "redirected", either user-created, or created by ghc-mod itself.
2015-08-16 23:20:00 +03:00
Nikolay Yakimov d276b9bb7f Remove redundant imports 2015-08-15 21:26:33 +03:00
Nikolay Yakimov de5ff87f19 Don't use infix call for type ctor 2015-08-15 20:58:45 +03:00
Nikolay Yakimov 2504f643e9 Replace mapped names with original ones in output 2015-08-15 20:58:45 +03:00
Nikolay Yakimov f8a0325617 Load all mapped targets 2015-08-15 20:41:10 +03:00
Nikolay Yakimov 3790fca20b Initial support for file redirection
Rewrite, taking discussion into consideration
2015-08-15 20:41:10 +03:00
Daniel Gröber 312a8c81fb Merge branch 'HaRe' of https://github.com/alanz/ghc-mod 2015-08-13 10:17:14 +02:00
Alan Zimmerman eafde94913 Expose functions for integration with HaRe 2015-08-13 09:49:51 +02:00
Daniel Gröber 2806f702d9 Start implementing line-prefix stuff
readProcess wrapper still missing from CabalHelper
2015-08-13 06:47:12 +02:00
Daniel Gröber 443650705c Fix #532, Use first component in cabal file for dangling modules in cabal projects 2015-08-12 10:44:41 +02:00
Daniel Gröber 28f06e035d Cleanup project type handling 2015-08-12 09:25:13 +02:00
Daniel Gröber 11243e5304 Add in-memory caching otherwise everything is slow 2015-08-11 07:38:25 +02:00