Copyright | (C) 2012-2016 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
This is used internally by the Iso
code to provide
efficient access to the two functions that make up an isomorphism.
Exchange (s -> a) (b -> t) |
Instances
Profunctor (Exchange a b) # | |
Defined in Control.Lens.Internal.Iso dimap :: (a0 -> b0) -> (c -> d) -> Exchange a b b0 c -> Exchange a b a0 d # lmap :: (a0 -> b0) -> Exchange a b b0 c -> Exchange a b a0 c # rmap :: (b0 -> c) -> Exchange a b a0 b0 -> Exchange a b a0 c # (#.) :: forall a0 b0 c q. Coercible c b0 => q b0 c -> Exchange a b a0 b0 -> Exchange a b a0 c # (.#) :: forall a0 b0 c q. Coercible b0 a0 => Exchange a b b0 c -> q a0 b0 -> Exchange a b a0 c # | |
Functor (Exchange a b s) # | |
This class provides a generalized notion of list reversal extended to other containers.
Instances
Reversing ByteString # | |
Defined in Control.Lens.Internal.Iso reversing :: ByteString -> ByteString # | |
Reversing ByteString # | |
Defined in Control.Lens.Internal.Iso reversing :: ByteString -> ByteString # | |
Reversing Text # | |
Defined in Control.Lens.Internal.Iso | |
Reversing Text # | |
Defined in Control.Lens.Internal.Iso | |
Reversing [a] # | |
Defined in Control.Lens.Internal.Iso | |
Reversing (NonEmpty a) # | |
Defined in Control.Lens.Internal.Iso | |
Reversing (Seq a) # | |
Defined in Control.Lens.Internal.Iso | |
Unbox a => Reversing (Vector a) # | |
Defined in Control.Lens.Internal.Iso | |
Storable a => Reversing (Vector a) # | |
Defined in Control.Lens.Internal.Iso | |
Prim a => Reversing (Vector a) # | |
Defined in Control.Lens.Internal.Iso | |
Reversing (Vector a) # | |
Defined in Control.Lens.Internal.Iso | |
Reversing (Deque a) # | |
Defined in Control.Lens.Internal.Deque |