Start migrating Ghc -> GhcMod monad
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user