planet-mitchell-0.0.0: Planet Mitchell

Safe HaskellSafe
LanguageHaskell2010

Optic.Iso.Strict

Contents

Synopsis
  • class Strict lazy strict | lazy -> strict, strict -> lazy where
    • lazy :: Strict lazy strict => Iso' strict lazy

    Strict

    class Strict lazy strict | lazy -> strict, strict -> lazy where #

    Ad hoc conversion between "strict" and "lazy" versions of a structure, such as Text or ByteString.

    Minimal complete definition

    strict

    Methods

    strict :: Iso' lazy strict #

    Instances
    Strict ByteString ByteString 
    Instance details

    Defined in Control.Lens.Iso

    Strict Text Text 
    Instance details

    Defined in Control.Lens.Iso

    Methods

    strict :: Iso' Text Text0 #

    Strict (ST s a) (ST s a) 
    Instance details

    Defined in Control.Lens.Iso

    Methods

    strict :: Iso' (ST s a) (ST0 s a) #

    Strict (WriterT w m a) (WriterT w m a) 
    Instance details

    Defined in Control.Lens.Iso

    Methods

    strict :: Iso' (WriterT0 w m a) (WriterT w m a) #

    Strict (StateT s m a) (StateT s m a) 
    Instance details

    Defined in Control.Lens.Iso

    Methods

    strict :: Iso' (StateT0 s m a) (StateT s m a) #

    Strict (RWST r w s m a) (RWST r w s m a) 
    Instance details

    Defined in Control.Lens.Iso

    Methods

    strict :: Iso' (RWST0 r w s m a) (RWST r w s m a) #

    lazy :: Strict lazy strict => Iso' strict lazy #

    An Iso between the strict variant of a structure and its lazy counterpart.

    lazy = from strict
    

    See http://hackage.haskell.org/package/strict-base-types for an example use.