Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data a :!: b = !a :!: !b
- newtype Get a = Get {}
- data GetEnv = GetEnv {}
- data GetException
- getOffset :: Get Int
- failGet :: (Int -> String -> GetException) -> String -> Get a
- runGet :: Get a -> ByteString -> Either String a
- runGetIO :: Get a -> ByteString -> IO a
- newtype Put a = Put {}
- data PutEnv = PutEnv {}
- data Chunk = Chunk {}
- evalPut :: Put a -> (a, ByteString)
- evalPutIO :: Put a -> IO (a, ByteString)
- grow :: Int -> Put ()
Documentation
The Get type
data GetException Source #
LengthException Int String | |
CharException Int String | |
EOFException Int String | |
GenericGetException Int String |
Instances
Eq GetException Source # | |
Defined in Data.Persist.Internal (==) :: GetException -> GetException -> Bool # (/=) :: GetException -> GetException -> Bool # | |
Show GetException Source # | |
Defined in Data.Persist.Internal showsPrec :: Int -> GetException -> ShowS # show :: GetException -> String # showList :: [GetException] -> ShowS # | |
Exception GetException Source # | |
Defined in Data.Persist.Internal |
runGet :: Get a -> ByteString -> Either String a Source #
Run the Get monad applies a get
-based parser on the input ByteString
The Put type
evalPut :: Put a -> (a, ByteString) Source #