Copyright | © 2016–present Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov92@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The modules contains a CUE sheet parser. You probably want to import Text.CueSheet instead.
Synopsis
- parseCueSheet :: String -> ByteString -> Either (ParseErrorBundle ByteString 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 (ParseErrorBundle ByteString 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 |
Instances
Extended error component with support for storing number of track declaration in which a parsing error has occurred.
Instances
Eq Eec Source # | |
Data Eec Source # | |
Defined in Text.CueSheet.Parser gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Eec -> c Eec # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Eec # dataTypeOf :: Eec -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Eec) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Eec) # gmapT :: (forall b. Data b => b -> b) -> Eec -> Eec # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Eec -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Eec -> r # gmapQ :: (forall d. Data d => d -> u) -> Eec -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Eec -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Eec -> m Eec # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Eec -> m Eec # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Eec -> m Eec # | |
Ord Eec Source # | |
Show Eec Source # | |
Generic Eec Source # | |
ShowErrorComponent Eec Source # | |
Defined in Text.CueSheet.Parser showErrorComponent :: Eec -> String # errorComponentLen :: Eec -> Int # | |
type Rep Eec Source # | |
Defined in Text.CueSheet.Parser type Rep Eec = D1 ('MetaData "Eec" "Text.CueSheet.Parser" "cue-sheet-2.0.2-GGixdMe9eW2IdNm87otXvp" 'False) (C1 ('MetaCons "Eec" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CueParserFailure))) |