Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Segment | |
|
Instances
Generic (Segment a) Source # | |
type Rep (Segment a) Source # | |
Defined in Arbor.File.Format.Asif.Type type Rep (Segment a) = D1 (MetaData "Segment" "Arbor.File.Format.Asif.Type" "asif-4.0.0-5kgBDv5iuk384ElLLM9flz" False) (C1 (MetaCons "Segment" PrefixI True) (S1 (MetaSel (Just "meta") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SegmentMeta) :*: S1 (MetaSel (Just "payload") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a))) |
extractSegments :: Parser ByteString -> ByteString -> Either String [Segment ByteString] Source #
extractNamedSegments :: Parser ByteString -> ByteString -> Either String (Map Text (Segment ByteString)) Source #
extractHeader :: Parser ByteString -> ByteString -> Either String [(Int, Int)] Source #
extractSegmentByteStringsWithHeader :: ByteString -> [(Int, Int)] -> Either String [ByteString] Source #
segmentNamed :: String -> Map Text (Segment ByteString) -> Either String ByteString Source #