cornea-0.4.0.0: classy optical monadic state
Safe HaskellNone
LanguageHaskell2010

Data.DeepPrisms

Synopsis

Documentation

class DeepPrisms e e' where Source #

Methods

prism :: Prism' e e' Source #

hoist :: DeepPrisms e e' => e' -> e Source #

retrieve :: DeepPrisms e e' => e -> Maybe e' Source #

data Ctor Source #

Constructors

Ctor 

Fields

Instances

Instances details
Eq Ctor Source # 
Instance details

Defined in Data.DeepPrisms

Methods

(==) :: Ctor -> Ctor -> Bool #

(/=) :: Ctor -> Ctor -> Bool #

Show Ctor Source # 
Instance details

Defined in Data.DeepPrisms

Methods

showsPrec :: Int -> Ctor -> ShowS #

show :: Ctor -> String #

showList :: [Ctor] -> ShowS #

data SubError Source #

Constructors

SubError 

Fields

Instances

Instances details
Eq SubError Source # 
Instance details

Defined in Data.DeepPrisms

Show SubError Source # 
Instance details

Defined in Data.DeepPrisms

prismFlavour :: NameFlavour -> NameFlavour Source #

Convert a constructor's NameFlavour to one for a prism The NameSpace field is DataName for the constructor and must be VarName Curiously, this only surfaces as a bug when having a certain nesting level across modules