Agda.Utils.TypeLits
Description
Type level literals, inspired by GHC.TypeLits.
data SBool (b :: Bool) where Source #
Singleton for type level booleans.
Constructors
eraseSBool :: forall (b :: Bool). SBool b -> Bool Source #
class KnownBool (b :: Bool) where Source #
A known boolean is one we can obtain a singleton for. Concrete values are trivially known.
Methods
boolSing :: SBool b Source #
Defined in Agda.Utils.TypeLits
boolSing :: SBool 'False Source #
boolSing :: SBool 'True Source #
boolVal :: forall proxy (b :: Bool). KnownBool b => proxy b -> Bool Source #