Language.Haskell.GhcMod.Logging

ghc-mod-5.5.0.0: Happy Haskell Programming

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.Logging

Synopsis

- gmSetLogLevel :: GmLog m => GmLogLevel -> m ()
- gmGetLogLevel :: forall m. GmLog m => m GmLogLevel
- gmSetDumpLevel :: GmLog m => Bool -> m ()
- increaseLogLevel :: GmLogLevel -> GmLogLevel
- decreaseLogLevel :: GmLogLevel -> GmLogLevel
- gmLog :: (MonadIO m, GmLog m, GmOut m) => GmLogLevel -> String -> Doc -> m ()
- gmLogQuiet :: GmLog m => GmLogLevel -> String -> Doc -> m ()
- gmAppendLogQuiet :: GmLog m => GhcModLog -> m ()
- gmVomit :: (MonadIO m, GmLog m, GmOut m, GmEnv m) => String -> Doc -> String -> m ()
- newtype LogDiscardT m a = LogDiscardT {
  - runLogDiscard :: m a
  }
- module Language.Haskell.GhcMod.Pretty
- data GmLogLevel
  - = GmSilent
  - | GmPanic
  - | GmException
  - | GmError
  - | GmWarning
  - | GmInfo
  - | GmDebug
  - | GmVomit
- module Text.PrettyPrint
- module Data.Monoid

# Documentation

gmSetLogLevel :: GmLog m => GmLogLevel -> m ()

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

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

increaseLogLevel :: GmLogLevel -> GmLogLevel

decreaseLogLevel :: GmLogLevel -> GmLogLevel

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

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

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

gmAppendLogQuiet :: GmLog m => GhcModLog -> m ()

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

newtype LogDiscardT m a

Constructors

LogDiscardT |
Fields runLogDiscard :: m a

Instances

MonadTrans LogDiscardT |
Monad m => Monad (LogDiscardT m) |
Functor m => Functor (LogDiscardT m) |
Applicative m => Applicative (LogDiscardT m) |
Monad m => GmLog (LogDiscardT m) |

module Language.Haskell.GhcMod.Pretty

data GmLogLevel

Constructors

GmSilent |
GmPanic |
GmException |
GmError |
GmWarning |
GmInfo |
GmDebug |
GmVomit |

Instances

Bounded GmLogLevel |
Enum GmLogLevel |
Eq GmLogLevel |
Ord GmLogLevel |
Read GmLogLevel |
Show GmLogLevel |

module Text.PrettyPrint

module Data.Monoid