iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.PrimParser

Documentation

newtype PrimParser a Source #

Constructors

PrimParser 

Fields

Instances

Instances details
Applicative PrimParser Source # 
Instance details

Defined in Data.PrimParser

Methods

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 # 
Instance details

Defined in Data.PrimParser

Methods

fmap :: (a -> b) -> PrimParser a -> PrimParser b #

(<$) :: a -> PrimParser b -> PrimParser a #

Monad PrimParser Source # 
Instance details

Defined in Data.PrimParser

Methods

(>>=) :: PrimParser a -> (a -> PrimParser b) -> PrimParser b #

(>>) :: PrimParser a -> PrimParser b -> PrimParser b #

return :: a -> PrimParser a #

withByteString :: ByteString -> (a -> IO r) -> PrimParser a -> IO r Source #

withInputHandle :: Handle -> (a -> IO r) -> PrimParser a -> IO r Source #

withInputHandleUpToN :: Handle -> Int -> (a -> IO r) -> PrimParser a -> IO r Source #

wordP# :: Addr# -> Word# -> (# Addr#, Word# #) Source #