cabal-fmt-0.1.9: Format .cabal files

Copyright | Oleg Grenrus
License | GPL-3.0-or-later
Safe Haskell | Safe-Inferred
Language | Haskell2010

CabalFmt.Error

Description

# Documentation

data Error #

Constructors

SomeError String |
CabalParseError FilePath ByteString (NonEmpty PError) (Maybe Version) [PWarning] |
PanicCannotParseInput ParseError |
WarningError String |

#### Instances

Instances details

Exception Error # |
Instance details Defined in CabalFmt.Error Methods toException :: Error -> SomeException fromException :: SomeException -> Maybe Error displayException :: Error -> String
Show Error # |
Instance details Defined in CabalFmt.Error Methods showsPrec :: Int -> Error -> ShowS show :: Error -> String showList :: [Error] -> ShowS
MonadError Error CabalFmt |
Instance details Defined in CabalFmt.Monad Methods throwError :: Error -> CabalFmt a # catchError :: CabalFmt a -> (Error -> CabalFmt a) -> CabalFmt a #
MonadError Error CabalFmtIO |
Instance details Defined in CabalFmt.Monad Methods throwError :: Error -> CabalFmtIO a # catchError :: CabalFmtIO a -> (Error -> CabalFmtIO a) -> CabalFmtIO a #

renderError :: Error -> IO () #