cabal-fmt-0.1: Format .cabal files

Safe HaskellNone
LanguageHaskell2010

CabalFmt.Monad

Documentation

data CabalFmt a Source #

Instances
Monad CabalFmt Source # 
Instance details

Defined in CabalFmt.Monad

Methods

(>>=) :: CabalFmt a -> (a -> CabalFmt b) -> CabalFmt b #

(>>) :: CabalFmt a -> CabalFmt b -> CabalFmt b #

return :: a -> CabalFmt a #

fail :: String -> CabalFmt a #

Functor CabalFmt Source # 
Instance details

Defined in CabalFmt.Monad

Methods

fmap :: (a -> b) -> CabalFmt a -> CabalFmt b #

(<$) :: a -> CabalFmt b -> CabalFmt a #

Applicative CabalFmt Source # 
Instance details

Defined in CabalFmt.Monad

Methods

pure :: a -> CabalFmt a #

(<*>) :: CabalFmt (a -> b) -> CabalFmt a -> CabalFmt b #

liftA2 :: (a -> b -> c) -> CabalFmt a -> CabalFmt b -> CabalFmt c #

(*>) :: CabalFmt a -> CabalFmt b -> CabalFmt b #

(<*) :: CabalFmt a -> CabalFmt b -> CabalFmt a #

MonadReader Options CabalFmt Source # 
Instance details

Defined in CabalFmt.Monad

Methods

ask :: CabalFmt Options #

local :: (Options -> Options) -> CabalFmt a -> CabalFmt a #

reader :: (Options -> a) -> CabalFmt a #

MonadError Error CabalFmt Source # 
Instance details

Defined in CabalFmt.Monad

Methods

throwError :: Error -> CabalFmt a #

catchError :: CabalFmt a -> (Error -> CabalFmt a) -> CabalFmt a #