glirc2

Copyright(c) Eric Mertens, 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

LensUtils

Description

This module provides functions that are useful with lenses.

Synopsis

Documentation

data Id' a Source #

Instances

Functor Id' Source #

Strict function composition

Methods

fmap :: (a -> b) -> Id' a -> Id' b #

(<$) :: a -> Id' b -> Id' a #

Applicative Id' Source #

Strict function application

Methods

pure :: a -> Id' a #

(<*>) :: Id' (a -> b) -> Id' a -> Id' b #

(*>) :: Id' a -> Id' b -> Id' b #

(<*) :: Id' a -> Id' b -> Id' a #

overStrict :: LensLike Id' s t a b -> (a -> b) -> s -> t Source #

Modify the target of a Setter with a function. The result is strict in the results of applying the function. Strict version of over

setStrict :: ASetter s t a b -> b -> s -> t Source #

Set a value strictly in the set value. Strict version of set.