ghc-mod-5.6.0.0: Happy Haskell Programming

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.GhcMod.Logging

Synopsis

Documentation

gmGetLogLevel :: forall m. GmLog m => m GmLogLevel Source #

gmSetDumpLevel :: GmLog m => Bool -> m () Source #

gmLog :: (MonadIO m, GmLog m, GmOut m) => GmLogLevel -> String -> Doc -> m () Source #

>>> Just GmDebug <= Nothing
False
>>> Just GmException <= Just GmDebug
True
>>> Just GmDebug <= Just GmException
False

gmLogQuiet :: GmLog m => GmLogLevel -> String -> Doc -> m () Source #

gmVomit :: (MonadIO m, GmLog m, GmOut m, GmEnv m) => String -> Doc -> String -> m () Source #

newtype LogDiscardT m a Source #

Constructors

LogDiscardT 

Fields

Instances

MonadTrans LogDiscardT Source # 

Methods

lift :: Monad m => m a -> LogDiscardT m a #

Monad m => Monad (LogDiscardT m) Source # 

Methods

(>>=) :: LogDiscardT m a -> (a -> LogDiscardT m b) -> LogDiscardT m b #

(>>) :: LogDiscardT m a -> LogDiscardT m b -> LogDiscardT m b #

return :: a -> LogDiscardT m a #

fail :: String -> LogDiscardT m a #

Functor m => Functor (LogDiscardT m) Source # 

Methods

fmap :: (a -> b) -> LogDiscardT m a -> LogDiscardT m b #

(<$) :: a -> LogDiscardT m b -> LogDiscardT m a #

Applicative m => Applicative (LogDiscardT m) Source # 

Methods

pure :: a -> LogDiscardT m a #

(<*>) :: LogDiscardT m (a -> b) -> LogDiscardT m a -> LogDiscardT m b #

(*>) :: LogDiscardT m a -> LogDiscardT m b -> LogDiscardT m b #

(<*) :: LogDiscardT m a -> LogDiscardT m b -> LogDiscardT m a #

Monad m => GmLog (LogDiscardT m) Source #