| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ormolu.Exception
Description
OrmoluException type and surrounding definitions.
Synopsis
- data OrmoluException
- withPrettyOrmoluExceptions :: ColorMode -> IO ExitCode -> IO ExitCode
Documentation
data OrmoluException Source #
Ormolu exception representing all cases when Ormolu can fail.
Constructors
| OrmoluParsingFailed SrcSpan String | Parsing of original source code failed |
| OrmoluOutputParsingFailed SrcSpan String | Parsing of formatted source code failed |
| OrmoluASTDiffers FilePath [SrcSpan] | Original and resulting ASTs differ |
| OrmoluNonIdempotentOutput TextDiff | Formatted source code is not idempotent |
| OrmoluUnrecognizedOpts (NonEmpty String) | Some GHC options were not recognized |
| OrmoluCabalFileParsingFailed FilePath | Cabal file parsing failed |
| OrmoluMissingStdinInputFile | Missing input file path when using stdin input and accounting for .cabal files |
Instances
| Exception OrmoluException Source # | |
Defined in Ormolu.Exception Methods toException :: OrmoluException -> SomeException Source # fromException :: SomeException -> Maybe OrmoluException Source # | |
| Show OrmoluException Source # | |
Defined in Ormolu.Exception | |
| Eq OrmoluException Source # | |
Defined in Ormolu.Exception Methods (==) :: OrmoluException -> OrmoluException -> Bool Source # (/=) :: OrmoluException -> OrmoluException -> Bool Source # | |
withPrettyOrmoluExceptions Source #
Inside this wrapper OrmoluException will be caught and displayed
nicely.