Language.Haskell.GhcMod.Logging

ghc-mod-5.8.0.0: Happy Haskell Hacking

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 Data.Monoid
- module Pretty

# 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 # |
Methods lift :: Monad m => m a -> LogDiscardT m a #
Monad m => Monad (LogDiscardT m) # |
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) # |
Methods fmap :: (a -> b) -> LogDiscardT m a -> LogDiscardT m b # (<$) :: a -> LogDiscardT m b -> LogDiscardT m a #
Applicative m => Applicative (LogDiscardT m) # |
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) # |
Methods gmlJournal :: GhcModLog -> LogDiscardT m () # gmlHistory :: LogDiscardT m GhcModLog # gmlClear :: LogDiscardT m () #

module Language.Haskell.GhcMod.Pretty

data GmLogLevel #

Constructors

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

Instances

Bounded GmLogLevel # |
Methods minBound :: GmLogLevel # maxBound :: GmLogLevel #
Enum GmLogLevel # |
Methods succ :: GmLogLevel -> GmLogLevel # pred :: GmLogLevel -> GmLogLevel # toEnum :: Int -> GmLogLevel # fromEnum :: GmLogLevel -> Int # enumFrom :: GmLogLevel -> [GmLogLevel] # enumFromThen :: GmLogLevel -> GmLogLevel -> [GmLogLevel] # enumFromTo :: GmLogLevel -> GmLogLevel -> [GmLogLevel] # enumFromThenTo :: GmLogLevel -> GmLogLevel -> GmLogLevel -> [GmLogLevel] #
Eq GmLogLevel # |
Methods (==) :: GmLogLevel -> GmLogLevel -> Bool # (/=) :: GmLogLevel -> GmLogLevel -> Bool #
Ord GmLogLevel # |
Methods compare :: GmLogLevel -> GmLogLevel -> Ordering # (<) :: GmLogLevel -> GmLogLevel -> Bool # (<=) :: GmLogLevel -> GmLogLevel -> Bool # (>) :: GmLogLevel -> GmLogLevel -> Bool # (>=) :: GmLogLevel -> GmLogLevel -> Bool # max :: GmLogLevel -> GmLogLevel -> GmLogLevel # min :: GmLogLevel -> GmLogLevel -> GmLogLevel #
Read GmLogLevel # |
Methods readsPrec :: Int -> ReadS GmLogLevel # readList :: ReadS [GmLogLevel] # readPrec :: ReadPrec GmLogLevel # readListPrec :: ReadPrec [GmLogLevel] #
Show GmLogLevel # |
Methods showsPrec :: Int -> GmLogLevel -> ShowS # show :: GmLogLevel -> String # showList :: [GmLogLevel] -> ShowS #

module Data.Monoid

module Pretty