persist-0.1.1.5: Minimal serialization library with focus on performance

Safe HaskellNone
LanguageHaskell2010

Data.Persist.Internal

Contents

Synopsis

Documentation

data a :!: b infixl 2 Source #

Constructors

!a :!: !b infixl 2 

The Get type

newtype Get a Source #

Constructors

Get 

Fields

Instances
Monad Get Source # 
Instance details

Defined in Data.Persist.Internal

Methods

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

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

return :: a -> Get a #

fail :: String -> Get a #

Functor Get Source # 
Instance details

Defined in Data.Persist.Internal

Methods

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

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

MonadFail Get Source # 
Instance details

Defined in Data.Persist.Internal

Methods

fail :: String -> Get a #

Applicative Get Source # 
Instance details

Defined in Data.Persist.Internal

Methods

pure :: a -> Get a #

(<*>) :: Get (a -> b) -> Get a -> Get b #

liftA2 :: (a -> b -> c) -> Get a -> Get b -> Get c #

(*>) :: Get a -> Get b -> Get b #

(<*) :: Get a -> Get b -> Get a #

data GetEnv Source #

Constructors

GetEnv 

Fields

runGet :: Get a -> ByteString -> Either String a Source #

Run the Get monad applies a get-based parser on the input ByteString

The Put type

newtype Put a Source #

Constructors

Put 

Fields

Instances
Monad Put Source # 
Instance details

Defined in Data.Persist.Internal

Methods

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

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

return :: a -> Put a #

fail :: String -> Put a #

Functor Put Source # 
Instance details

Defined in Data.Persist.Internal

Methods

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

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

Applicative Put Source # 
Instance details

Defined in Data.Persist.Internal

Methods

pure :: a -> Put a #

(<*>) :: Put (a -> b) -> Put a -> Put b #

liftA2 :: (a -> b -> c) -> Put a -> Put b -> Put c #

(*>) :: Put a -> Put b -> Put b #

(<*) :: Put a -> Put b -> Put a #

data PutEnv Source #

Constructors

PutEnv 

Fields

data Chunk Source #

Constructors

Chunk 

Fields

grow :: Int -> Put () Source #

Ensure that n bytes can be written.