Start migrating Ghc -> GhcMod monad

This commit is contained in:
Daniel Gröber
2014-05-10 13:51:35 +02:00
parent 2d8faed072
commit e5c6d3e472
5 changed files with 37 additions and 37 deletions

View File

@@ -8,6 +8,7 @@ module Language.Haskell.GhcMod.Monad (
, runGhcMod'
, runGhcMod
, toGhcMod
, options
, module Control.Monad.Reader.Class
, module Control.Monad.Writer.Class
, module Control.Monad.State.Class
@@ -99,6 +100,9 @@ toGhcMod a = do
s <- gmGhcSession <$> ask
liftIO $ unGhc a $ Session s
options :: GhcMod Options
options = gmOptions <$> ask
instance MonadBase IO GhcMod where
liftBase = GhcMod . liftBase