ghc-mod/Language/Haskell/GhcMod
Daniel Gröber c50b4f5a38 ghc-mod deserves it's own monad
Having to call `findCradle` and `initializeFlagsWithCradle` everywhere
we interact with ghc-mod's API doesn't seem very Haskell-like to me I
think we should provide a Monad that has a run function that already
does all those tedious tasks for us.

The `GhcMod` monad is basically a wrapper around `RWST r w s IO` with an
instance for `GhcMonad`

Having a `Reader` allows us to pass `Options` to runGhcMod and not have
to worry about passing it everywhere, `Cradle` is also stored in the
reader environment on initialization.

Writer and State are just there for future use.

I've included a `toGhcMod` function that turns a `Ghc a` into a `GhcMod
a` this will make it easy to transition everyting to using the `GhcMod`
monad instead of `Ghc` without breaking the build or test suite for
extended periods of time.

Conflicts:
	ghc-mod.cabal
2014-05-04 04:57:38 +02:00
..
Boot.hs doc. 2014-04-30 10:51:34 +09:00
Browse.hs removing the third argument from initializeFlagsWithCradle. 2014-04-28 13:00:25 +09:00
CabalApi.hs Hide catch from Prelude 2014-05-04 04:57:38 +02:00
Check.hs ErrMsg -> Logger. 2014-04-28 21:47:08 +09:00
Cradle.hs More refactoring of package handling 2014-04-18 03:59:46 +02:00
Debug.hs ghc-mod debug does not need a file. 2014-04-21 11:31:15 +09:00
Doc.hs import DynFlag only in Gap. 2014-04-26 13:21:22 +09:00
Find.hs doc. 2014-04-30 10:51:34 +09:00
Flag.hs removing unnecessary CPP. 2013-07-01 13:21:49 +09:00
Gap.hs rescue old GHCs. 2014-04-28 14:36:55 +09:00
Ghc.hs bootInfo as API. 2014-04-30 10:49:25 +09:00
GHCApi.hs doc. 2014-04-28 21:51:39 +09:00
GHCChoice.hs close import. 2014-03-27 15:45:51 +09:00
GhcPkg.hs Remove Maybe from cabalConfigDependencies and fromInstalledPackageId 2014-05-04 04:57:38 +02:00
Info.hs removing the third argument from initializeFlagsWithCradle. 2014-04-28 13:00:25 +09:00
Internal.hs ErrMsg -> Logger. 2014-04-28 21:47:08 +09:00
Lang.hs clean up Gap. 2014-04-28 14:13:25 +09:00
Lint.hs ErrMsg -> Logger. 2014-04-28 21:47:08 +09:00
List.hs removing the third argument from initializeFlagsWithCradle. 2014-04-28 13:00:25 +09:00
Logger.hs better names. 2014-04-28 21:59:54 +09:00
Monad.hs ghc-mod deserves it's own monad 2014-05-04 04:57:38 +02:00
PkgDoc.hs Refactor the way packages databases are handled 2014-04-15 05:15:50 +02:00
Types.hs cleaning up check, splice flag and logger. 2014-04-26 17:54:15 +09:00
Utils.hs Parse cabal setup-config to get depencencies 2014-05-03 15:36:10 +02:00