| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Persist.Internal
Contents
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 #
Constructors
| LengthException Int String | |
| CharException Int String | |
| EOFException Int String | |
| GenericGetException Int String |
Instances
| Eq GetException Source # | |
Defined in Data.Persist.Internal | |
| Show GetException Source # | |
Defined in Data.Persist.Internal Methods showsPrec :: Int -> GetException -> ShowS # show :: GetException -> String # showList :: [GetException] -> ShowS # | |
| Exception GetException Source # | |
Defined in Data.Persist.Internal Methods toException :: GetException -> SomeException # fromException :: SomeException -> Maybe GetException # displayException :: GetException -> String # | |
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 #