Commit Graph

86 Commits

Author SHA1 Message Date
Nikolay Yakimov 3081e1d8f5 Fix problem with MIN_VERSION_GLASGOW_HASKELL on GHC<7.10.1 2016-10-25 21:25:28 +03:00
Daniel Gröber 757e17f34a Fix 'withCleanupSession' CPP conditional 2016-10-23 22:43:54 +02:00
Daniel Gröber ad99dd9c55 Gap: Untangle some CPP conditionals 2016-10-22 16:40:00 +02:00
Joe Hermaszewski b1ea960f29 Add support for ghc-8.0.2 2016-10-20 14:56:57 +01:00
Daniel Gröber f3cb30520b fix ghc < 8 2016-07-16 03:53:57 +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 31e3c0b500 Housekeeping for GHC 8
- Remove some CPP needed only because of GHC 7.4 (which is not supported
  now, yey)
- Move CPP for GHC 8 to Gap module
2016-05-22 03:47:07 +02:00
Moritz Kiefer 27bacd52ec Fix remaining build errors for GHC 8 2016-05-19 18:25:05 +02:00
Daniel Gröber 66c6379945 Merge branch 'release-5.6.0.0' into ghc-8 2016-05-17 20:21:33 +02:00
Daniel Gröber 9eeaf09095 Merge branch 'master' into ghc-8 2016-05-17 20:21:25 +02:00
Daniel Gröber f994893c58 Merge branch 'type-constraints' of https://github.com/atom-haskell/ghc-mod into release-5.6.0.0 2016-05-14 21:35:21 +02:00
Nikolay Yakimov 11a1ad2cf3 Fix mapping subst in info for insts add type fams 2016-03-15 22:09:06 +03:00
Jude Taylor 8ef0f52199 GHC 8 readiness 2016-02-04 10:54:55 -08: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 39659b2917 [Type-constraints] Removed unnecessary definitions 2016-01-19 22:53:07 +03:00
Nikolay Yakimov 88f61724d4 [Type-constraints] Proof-of-concept 2016-01-18 07:09:14 +03:00
Nikolay Yakimov 4ff819906d NFData ByteString instance for GHC-7.4 2016-01-09 18:51:57 +03:00
Daniel Gröber 67c9538f30 Fix 7.6 warning 2016-01-04 01:23:46 +01:00
Daniel Gröber ce1d9d1da1 Fix ghc<7.10 2015-09-11 05:45:59 +02:00
Daniel Gröber acf78f2500 Remove stray debug code 2015-09-11 03:57:54 +02:00
Daniel Gröber 12d65ba11f Fix some warnings 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 473f1e09c7 Rename withContext -> withInteractiveContext 2015-08-21 04:12:53 +02:00
Daniel Gröber e360f7eb44 Fix older GHCs 2015-08-19 09:05:57 +02:00
Anthony Cowley 78c5cea161 DeferErrors implies DeferTypedHoles in GHC >= 7.10
The Opt_DeferErrors flag should imply Opt_DeferTypedHoles. The proper
API for setting these flags that implements such implications is
unfortunately not exposed by GHC.
2015-08-17 15:14:44 -04:00
Alejandro Serrano 45f8194c0c Set -fdefer-types-holes in case split 2015-08-17 14:54:10 -04:00
Nikolay Yakimov e7329a9d24 Replace redirected filenames in info. 2015-08-15 21:07:36 +03:00
Daniel Gröber 614522644b Fix imports for ghc < 7.10 2015-08-03 07:51:23 +02:00
Daniel Gröber f023d939e2 Fix GHC 7.10 warnings 2015-08-03 05:46:51 +02:00
Sergey Vinokurov 7b6eb55b11 Transform ModuleString and Expression type synonyms into newtypes 2015-06-02 10:43:29 +03:00
Daniel Gröber 2151363dd6 Add back `-d` option to `modules` command 2015-03-05 19:38:18 +01:00
Daniel Gröber 01dde80385 Bring test suite up to date 2015-03-05 17:35:28 +01:00
Daniel Gröber 82bb0090c0 Refactoring to use cabal-helper-wrapper
This turned out to be quite involved but save for this huge commit it's
actually quite awesome and squashes quite a few bugs and nasty
problems (hopefully). Most importantly we now have native cabal
component support without the user having to do anything to get it!

To do this we traverse imports starting from each component's
entrypoints (library modules or Main source file for executables) and
use this information to find which component's options each module will
build with. Under the assumption that these modules have to build with
every component they're used in we can now just pick one.

Quite a few internal assumptions have been invalidated by this
change. Most importantly the runGhcModT* family of cuntions now change
the current working directory to `cradleRootDir`.
2015-03-05 17:35:24 +01:00
Daniel Gröber 2b4fd77c28 Add GHC-7.10 support 2015-02-08 12:43:35 +01:00
Alan Zimmerman 0944820dba CaseSplit panic sorted. closes https://github.com/kazu-yamamoto/ghc-mod/issues/336 2014-08-23 14:06:26 +02:00
Kazu Yamamoto 233f4cf05e moving setFlags to Gap. 2014-07-18 11:09:11 +09:00
Kazu Yamamoto 25730e2a6c trying to fix CI 2014-07-15 15:13:06 +09:00
Kazu Yamamoto 0b71748708 moving #if to Gap.hs 2014-07-15 14:44:02 +09:00
Kazu Yamamoto 84c3cec0f1 moving #if to Gap.hs. 2014-07-15 12:40:18 +09:00
Kazu Yamamoto be9a67f02a moving #if to Gap.hs. 2014-07-15 12:29:27 +09:00
Alejandro Cabrera daada0d27e Fix GHC 7.8.3: MatchGroup now has 4 args
Rather than use a pattern match, this patch opts to explicitly extract
the fields of interest using where syntax. This keeps compatibility
across GHC 7.8 releases.

Ref: eeaea2df3f (diff-259092edcc59456f526cdef255c181d1L909)
2014-07-11 01:15:22 -04:00
Alejandro Serrano c06ee75fbb Fix building errors on ghc < 7.8 and tests 2014-06-28 23:18:49 +02:00
Alejandro Serrano 1b66f65b48 Move lots of stuff to GhcMod
- Generalize many signatures to GhcMonad m
2014-06-28 21:43:51 +02:00
Alejandro Serrano 323c1b5471 Initial support for adding body from signature 2014-06-10 21:34:05 +02:00
Alejandro Serrano cedf59ace7 Merge branch 'fix-typed-holes' 2014-06-10 17:09:46 +02:00
Alejandro Serrano c9b901f4f9 Fix problems with GHC's Typed Holes 2014-06-09 10:30:33 +02:00
Alejandro Serrano 6854d417c0 Initial implementation of case splitting
- It doesn't handle vars correctly yet
2014-06-08 12:33:13 +02:00
Daniel Gröber 814ea60552 `Types` doesn't export `convert` anymore 2014-05-14 20:55:54 +02:00
Kazu Yamamoto 9bc25046e3 rescue old GHCs. 2014-04-28 14:36:55 +09:00
Kazu Yamamoto ae75872638 fixing regression. 2014-04-28 14:36:46 +09:00