lens-4.19.2: Lenses, Folds and Traversals

Copyright(C) 2012-16 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Control.Lens.Extras

Description

A few extra names that didn't make it into Control.Lens.

Synopsis

Documentation

is :: APrism s t a b -> s -> Bool Source #

Check to see if this ReifiedPrism matches.

>>> is _Left (Right 12)
False
>>> is hex "3f79"
True