Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
newtype PrimParser a Source #
PrimParser | |
|
Instances
Applicative PrimParser Source # | |
Defined in Data.PrimParser pure :: a -> PrimParser a # (<*>) :: PrimParser (a -> b) -> PrimParser a -> PrimParser b # liftA2 :: (a -> b -> c) -> PrimParser a -> PrimParser b -> PrimParser c # (*>) :: PrimParser a -> PrimParser b -> PrimParser b # (<*) :: PrimParser a -> PrimParser b -> PrimParser a # | |
Functor PrimParser Source # | |
Defined in Data.PrimParser fmap :: (a -> b) -> PrimParser a -> PrimParser b # (<$) :: a -> PrimParser b -> PrimParser a # | |
Monad PrimParser Source # | |
Defined in Data.PrimParser (>>=) :: PrimParser a -> (a -> PrimParser b) -> PrimParser b # (>>) :: PrimParser a -> PrimParser b -> PrimParser b # return :: a -> PrimParser a # |
runPrimParser :: PrimParser a -> Ptr Word8 -> Ptr Word8 -> (a, Ptr Word8) Source #
withByteString :: ByteString -> (a -> IO r) -> PrimParser a -> IO r Source #
unsafeWithByteString :: ByteString -> PrimParser a -> a Source #
withInputHandle :: Handle -> (a -> IO r) -> PrimParser a -> IO r Source #
withInputHandleUpToN :: Handle -> Int -> (a -> IO r) -> PrimParser a -> IO r Source #
viewPrimParser :: PrimParser (Ptr Word8, Ptr Word8) Source #
intP :: PrimParser Int Source #
wordP :: PrimParser Word Source #
int :: PrimParser Int Source #
uint :: PrimParser Int Source #
uint1 :: PrimParser Int Source #
byte :: PrimParser Word8 Source #
char :: PrimParser Char Source #
charSp :: PrimParser Char Source #
charLn :: PrimParser Char Source #
digitC :: PrimParser Int Source #
lowerC :: PrimParser Int Source #
upperC :: PrimParser Int Source #
byteStringTo :: Word8 -> PrimParser ByteString Source #
byteStringN :: Int -> PrimParser ByteString Source #
byteStringHW :: Int -> Int -> PrimParser ByteString Source #
line :: PrimParser a -> PrimParser a Source #
linesN :: Int -> PrimParser a -> PrimParser a Source #