-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Parse ByteStrings of a prescribed length.
--
-- Parse prescribed-length ByteStrings, which allows for some performance
-- optimisations. You can also convert from a Constaparser to a
-- Parser from Attoparsec.
@package constaparser
@version 0.1.0.1
module Data.Constaparser.Internal
data Constaparser a
Constaparser :: {-# UNPACK #-} !Int -> (ByteString -> Either String a) -> Constaparser a
data ConstaparserST s e a
ConstaparserST :: {-# UNPACK #-} !Int -> (e -> ByteString -> ST s (Either String a)) -> ConstaparserST s e a
constaparserToAttoparsec :: Constaparser a -> Parser a
withMutableVector :: Int -> (forall s. ConstaparserST s (MVector s a) ()) -> Constaparser (Vector a)
cpInt :: String -> Int -> Constaparser Int
dropTrailingSpace :: ByteString -> ByteString
instance GHC.Base.Functor (Data.Constaparser.Internal.ConstaparserST s e)
instance GHC.Base.Functor Data.Constaparser.Internal.Constaparser
instance GHC.Base.Applicative (Data.Constaparser.Internal.ConstaparserST s e)
instance GHC.Base.Applicative Data.Constaparser.Internal.Constaparser
module Data.Constaparser
data Constaparser a
data ConstaparserST s e a
constaparserToAttoparsec :: Constaparser a -> Parser a
withMutableVector :: Int -> (forall s. ConstaparserST s (MVector s a) ()) -> Constaparser (Vector a)
cpInt :: String -> Int -> Constaparser Int
dropTrailingSpace :: ByteString -> ByteString