opaleye-0.3.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellSafe-Inferred
LanguageHaskell98

Opaleye.Internal.PackMap

Documentation

data PackMap a b s t Source

Constructors

PackMap (Applicative f => (a -> f b) -> s -> f t) 

Instances

packmap :: Applicative f => PackMap a b s t -> (a -> f b) -> s -> f t Source

over :: PackMap a b s t -> (a -> b) -> s -> t Source

type PM a = State (a, Int) Source

write :: a -> PM [a] () Source

run :: PM [a] r -> (r, [a]) Source

extractAttrPE :: (a -> String -> String) -> Tag -> a -> PM [(Symbol, a)] PrimExpr Source