equational-reasoning-0.4.1.1: Proof assistant for Haskell using DataKinds & PolyKinds

Safe HaskellNone
LanguageHaskell98

Proof.Propositional.Inhabited

Synopsis

Documentation

class Inhabited a where Source #

Types with at least one inhabitant, dual to Empty. | Current GHC doesn't provide selective-instance, hence we don't Empty provide instances for sum types in a generic deriving (DeriveAnyClass).

To derive an instance for each concrete types, use prove.

Since 0.4.0.0.

Methods

trivial :: a Source #

trivial :: (Generic a, GInhabited (Rep a)) => a Source #

Instances

Inhabited () Source # 

Methods

trivial :: () Source #

Inhabited (IsTrue True) Source # 
Inhabited b => Inhabited (a -> b) Source # 

Methods

trivial :: a -> b Source #

(Inhabited a, Inhabited b) => Inhabited (a, b) Source # 

Methods

trivial :: (a, b) Source #

(Inhabited a, Inhabited b, Inhabited c) => Inhabited (a, b, c) Source # 

Methods

trivial :: (a, b, c) Source #

(Inhabited a, Inhabited b, Inhabited c, Inhabited d) => Inhabited (a, b, c, d) Source # 

Methods

trivial :: (a, b, c, d) Source #

withInhabited :: forall a b. a -> (Inhabited a => b) -> b Source #