| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Monatone.Types
Synopsis
- data ParseError
- type Parser = ExceptT ParseError IO
- readInt :: Text -> Maybe Int
- readText :: ByteString -> Maybe Text
- formatError :: ParseError -> Text
Documentation
data ParseError Source #
Parser errors with detailed context
These errors provide enough information for debugging without exposing internal implementation details to end users.
Constructors
| UnsupportedFormat Text | File format not supported (with format details) |
| CorruptedFile Text | File structure invalid (with corruption details) |
| IOError Text | IO operation failed (with system error) |
| PartialParse Text | File partially parsed (common with corrupted MP3s) |
| InvalidEncoding Text | Text encoding issues (common with old MP3 tags) |
Instances
formatError :: ParseError -> Text Source #
Format error for user display