trivial-constraint-0.4.0.0: Constraints that any type, resp. no type fulfills

Copyright(c) 2014-2016 Justus Sagemüller
LicenseGPL v3 (see LICENSE)
Maintainer(@) jsagemue $ uni-koeln.de
Safe HaskellSafe
LanguageHaskell2010

Data.Constraint.Trivial

Description

 

Synopsis

Documentation

class Unconstrained t Source

Intended to be used as an argument for some type constructor which expects kind * -> Constraint, when you do not actually wish to constrain anything with it.

Unconstrained t can always be added to the constraint list of any signature, without changing anything.

Instances

type Impossible t = HiddenEmptyClass t Source

This constraint can never be fulfilled. Might be useful e.g. as a default for a class-associated constraint; this basically disables any method with that constraint (so it can safely be left undefined).

class Unconstrained2 t s Source

Like Unconstrained, but with kind signature * -> * -> Constraint (two unconstrained types).

Instances

type Impossible2 t s = HiddenEmptyClass2 t s Source

class Unconstrained3 t s r Source

Instances

type Impossible3 t s r = HiddenEmptyClass3 t s r Source

class Unconstrained4 t s r q Source

Instances

type Impossible4 t s r q = HiddenEmptyClass4 t s r q Source

class Unconstrained5 t s r q p Source

Instances

type Impossible5 t s r q p = HiddenEmptyClass5 t s r q p Source

class Unconstrained6 t s r q p o Source

Instances

Unconstrained6 t s r q p o Source 

type Impossible6 t s r q p o = HiddenEmptyClass6 t s r q p o Source

class Unconstrained7 t s r q p o n Source

Instances

Unconstrained7 t s r q p o n Source 

type Impossible7 t s r q p o n = HiddenEmptyClass7 t s r q p o n Source

class Unconstrained8 t s r q p o n m Source

Instances

Unconstrained8 t s r q p o n m Source 

type Impossible8 t s r q p o n m = HiddenEmptyClass8 t s r q p o n m Source

class Unconstrained9 t s r q p o n m l Source

Instances

Unconstrained9 t s r q p o n m l Source 

type Impossible9 t s r q p o n m l = HiddenEmptyClass9 t s r q p o n m l Source