Copyright | © 2016–2017 Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov92@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
The modules contains a CUE sheet parser. You probably want to import Text.CueSheet instead.
- parseCueSheet :: String -> ByteString -> Either (ParseError Word8 Eec) CueSheet
- data CueParserFailure
- data Eec = Eec (Maybe Natural) CueParserFailure
Documentation
:: String | File name to include in error messages |
-> ByteString | CUE sheet to parse as a lazy |
-> Either (ParseError Word8 Eec) CueSheet |
|
Parse a CUE sheet from a lazy ByteString
.
data CueParserFailure Source #
The enumeration of all failures that may happen during running of
parseCueSheet
.
CueParserTrivialError (Maybe (ErrorItem Word8)) (Set (ErrorItem Word8)) | A wrapper for a trivial error |
CueParserInvalidCatalog Text | We ran into an invalid media catalog number |
CueParserInvalidCueText Text | We ran into an invalid text literal |
CueParserTrackOutOfOrder | We spotted a track out of order |
CueParserInvalidTrackIsrc Text | We ran into an invalid ISRC |
CueParserInvalidSeconds Natural | We ran into an invalid number of seconds |
CueParserInvalidFrames Natural | We ran into an invalid number of frames |
CueParserTrackIndexOutOfOrder | We spotted a track index out of order |
Extended error component with support for storing number of track declaration in which a parsing error has occurred.