constraints-extras-0.1.0.1: Utility package for constraints

Safe HaskellSafe
LanguageHaskell2010

Data.Constraint.Extras

Synopsis

Documentation

class ArgDict f where Source #

Provides proof of the existence of a constraint on a GADT

Minimal complete definition

argDict

Associated Types

type ConstraintsFor (c :: * -> Constraint) f :: Constraint Source #

Methods

argDict :: ConstraintsFor c f => f a -> Dict (c a) Source #

type Has c f = (ArgDict f, ConstraintsFor c f) Source #

class Implies1 c d where Source #

Allows explicit specification of constraint implication

Minimal complete definition

implies1

Methods

implies1 :: c a :- d a Source #