Start implementing line-prefix stuff
readProcess wrapper still missing from CabalHelper
This commit is contained in:
@@ -39,6 +39,7 @@ module Language.Haskell.GhcMod.Monad.Types (
|
||||
, GmLogLevel(..)
|
||||
, GhcModLog(..)
|
||||
, GhcModError(..)
|
||||
, Gm
|
||||
, GmEnv(..)
|
||||
, GmState(..)
|
||||
, GmLog(..)
|
||||
@@ -198,6 +199,8 @@ class Monad m => GmEnv m where
|
||||
gmeLocal :: (GhcModEnv -> GhcModEnv) -> m a -> m a
|
||||
{-# MINIMAL (gmeAsk | gmeReader), gmeLocal #-}
|
||||
|
||||
type Gm m = (GmEnv m, GmState m, GmLog m)
|
||||
|
||||
instance Monad m => GmEnv (GhcModT m) where
|
||||
gmeAsk = GhcModT ask
|
||||
gmeReader = GhcModT . reader
|
||||
|
||||
Reference in New Issue
Block a user