persistent-lens-1.0.0: lens helpers for persistent.
Safe HaskellNone
LanguageHaskell2010

Persistent.Lens

Description

Lenses for persistent.

Synopsis

Documentation

entityTupleIso :: Iso' (Entity a) (Key a, a) Source #

an isomorphism from an entity to a tuple

valueLens :: Lens' (Entity a) a Source #

A lens from an entity to it's value

keyLens :: Lens' (Entity a) (Key a) Source #

A lens from an entity to it's key