lens-accelerate-0.3.0.0: Instances to mix lens with Accelerate

Copyright[2015..2020] Trevor L. McDonell
LicenseBSD-style (see the file LICENSE)
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.Control.Lens

Description

 
Synopsis

Documentation

liftLens :: (Functor f, Unlift box s, Unlift box t, Unlift box b, Lift box a) => ((a -> f b) -> s -> f t) -> (box (Plain a) -> f (box (Plain b))) -> box (Plain s) -> f (box (Plain t)) Source #

Lift a Lens into a lens on the equivalent Accelerate term.

The instances exported by this package are all defined in terms of this function, using the definitions from the base lens package.