lens-4.17.1: Lenses, Folds and Traversals

Copyright(C) 2016 Edward Kmett and Eric Mertens
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

Control.Lens.Internal.Coerce

Description

This module provides a shim around coerce that defaults to unsafeCoerce on GHC < 7.8. It also exposes a type-restricted version of '(#.)' that works around a bizarre GHC 7.10–specific bug.

Documentation

coerce :: Coercible a b => a -> b #

coerce' :: forall a b. Coercible a b => b -> a Source #

(#..) :: (Profunctor p, Coercible c b) => (b -> c) -> p a b -> p a c Source #