Top-1.7: Constraint solving framework employed by the Helium Compiler.

Safe HaskellSafe-Infered

Top.Util.Option

Description

 

Documentation

data Option a Source

Constructors

Option 

Instances

Functor Option 
(Show a, Eq a) => Show (Option a) 

data OptionAccess m a Source

Constructors

Access 

Fields

getOption :: m a
 
setOption :: a -> m ()
 

optionAccessTrans :: (forall a. m1 a -> m2 a) -> OptionAccess m1 b -> OptionAccess m2 bSource

useOption :: MonadState s m => (s -> Option a) -> (Option a -> s -> s) -> OptionAccess m aSource