Modulesingletons-3.0.3Haskell2010
Data.Singletons.Decide
Defines the class SDecide, allowing for decidable equality over singletons.
- 4 types
- 1 class
- 2 values
- Packagesingletons-3.0.3
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDecide.hs
The SDecide class
1 declarationSupporting definitions
6 declarationsPropositional equality. If a :~: b is inhabited by some terminating
value, then the type a is the same as the type b. To use this equality
in practice, pattern-match on the a :~: b to get out the Refl constructor;
in the body of the pattern-match, the compiler knows that a ~ b.
Instances10Category, TestCoercion, TestEquality, Bounded, Enum, Eq, …
Category (:~:)Defined in ghc-internal-9.1003.0 · GHC.Internal.Control.CategoryTestCoercion ((:~:) a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.CoercionTestEquality ((:~:) a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.Equalitya ~ b => Bounded (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.Equalitya ~ b => Enum (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.EqualityEq (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.Equality(a ~ b, Data a) => Data (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.DataOrd (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.Equalitya ~ b => Read (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.EqualityShow (a :~: b)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.Type.Equality
Uninhabited data type
Instances10Eq, Data, Ord, Read, Show, Ix, …
Eq VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.BaseData VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.Data.DataOrd VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.BaseRead VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.ReadShow VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.ShowIx VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.IxGeneric VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.GenericsSemigroup VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.BaseException VoidDefined in ghc-internal-9.1003.0 · GHC.Internal.Exception.Typetype Rep Void = D1 ('MetaDataDefined in ghc-internal-9.1003.0 · GHC.Internal.Generics"Void"
"GHC.Internal.Base"
"ghc-internal"
'False) V1
A suitable default implementation for testEquality that leverages SDecide.
A suitable default implementation for testCoercion that leverages SDecide.