| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Persist.Internal
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
- unsafeGetPrefix :: Int -> Get a -> Get a
- newtype Put a = Put {}
- data PutEnv = PutEnv {}
- data PutException = PutSizeMissingStartChunk
- data Chunk = Chunk {}
- evalPut :: Put a -> (a, ByteString)
- evalPutStrictIO :: Put a -> IO (a, ByteString)
- evalPutLazy :: Put a -> (a, ByteString)
- evalPutLazyIO :: Put a -> IO (a, ByteString)
- grow :: Int -> Put ()
- data PutSize a = PutSize {}
Documentation
The Get type
data GetException Source #
Constructors
| LengthException Int String | |
| CharException Int String | |
| EOFException Int String | |
| GenericGetException Int String |
Instances
| Exception GetException Source # | |
Defined in Data.Persist.Internal Methods toException :: GetException -> SomeException # fromException :: SomeException -> Maybe GetException # displayException :: GetException -> String # | |
| Show GetException Source # | |
Defined in Data.Persist.Internal Methods showsPrec :: Int -> GetException -> ShowS # show :: GetException -> String # showList :: [GetException] -> ShowS # | |
| Eq 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
data PutException Source #
Constructors
| PutSizeMissingStartChunk |
Instances
| Exception PutException Source # | |
Defined in Data.Persist.Internal Methods toException :: PutException -> SomeException # fromException :: SomeException -> Maybe PutException # displayException :: PutException -> String # | |
| Show PutException Source # | |
Defined in Data.Persist.Internal Methods showsPrec :: Int -> PutException -> ShowS # show :: PutException -> String # showList :: [PutException] -> ShowS # | |
| Eq PutException Source # | |
Defined in Data.Persist.Internal | |
evalPut :: Put a -> (a, ByteString) Source #
evalPutStrictIO :: Put a -> IO (a, ByteString) Source #
evalPutLazy :: Put a -> (a, ByteString) Source #
evalPutLazyIO :: Put a -> IO (a, ByteString) Source #