winery-0.3.1: Sustainable serialisation library

Safe HaskellNone
LanguageHaskell2010

Data.Winery.Internal

Documentation

type Decoder = (->) ByteString #

decodeAt :: (Int, Int) -> Decoder a -> Decoder a #

decodeVarInt :: (Num a, Bits a) => ContT r Decoder a #

type Offsets = Vector (Int, Int) #

unsafeIndex :: String -> [a] -> Int -> a #

unsafeIndexV :: Unbox a => String -> Vector a -> Int -> a #

newtype Strategy a #

Constructors

Strategy 
Instances
Monad Strategy # 
Instance details

Defined in Data.Winery.Internal

Methods

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

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

return :: a -> Strategy a #

fail :: String -> Strategy a #

Functor Strategy # 
Instance details

Defined in Data.Winery.Internal

Methods

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

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

MonadFix Strategy # 
Instance details

Defined in Data.Winery.Internal

Methods

mfix :: (a -> Strategy a) -> Strategy a #

Applicative Strategy # 
Instance details

Defined in Data.Winery.Internal

Methods

pure :: a -> Strategy a #

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

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

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

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

Alternative Strategy # 
Instance details

Defined in Data.Winery.Internal

Methods

empty :: Strategy a #

(<|>) :: Strategy a -> Strategy a -> Strategy a #

some :: Strategy a -> Strategy [a] #

many :: Strategy a -> Strategy [a] #

newtype TransFusion f g a #

Constructors

TransFusion 

Fields

Instances
Functor (TransFusion f g) # 
Instance details

Defined in Data.Winery.Internal

Methods

fmap :: (a -> b) -> TransFusion f g a -> TransFusion f g b #

(<$) :: a -> TransFusion f g b -> TransFusion f g a #

Applicative (TransFusion f g) # 
Instance details

Defined in Data.Winery.Internal

Methods

pure :: a -> TransFusion f g a #

(<*>) :: TransFusion f g (a -> b) -> TransFusion f g a -> TransFusion f g b #

liftA2 :: (a -> b -> c) -> TransFusion f g a -> TransFusion f g b -> TransFusion f g c #

(*>) :: TransFusion f g a -> TransFusion f g b -> TransFusion f g b #

(<*) :: TransFusion f g a -> TransFusion f g b -> TransFusion f g a #