grisette-0.12.0.0: Symbolic evaluation as a library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Grisette.Internal.Unified.Class.UnionViewMode

Synopsis

Documentation

class UnionViewMode (mode :: EvalModeTag) (u :: Type -> Type) | u -> mode Source #

This class is used to determine the type of the Boolean used in the UnionView class.

For Identity, we use Bool as the Boolean type, and this ensures that the ifView function will return Nothing.

For Union, we use SymBool as the Boolean type, and ifView function can return Nothing or Just.