datafix-0.0.0.2: Fixing data-flow problems

Copyright(c) Sebastian Graf 2018
LicenseISC
Maintainersgraf1337@gmail.com
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Datafix.Utils.Constraints

Description

Universally quantified constraints, until we have -XQuantifiedConstraints.

Synopsis

Documentation

data Dict :: Constraint -> Type where Source #

Constructors

Dict :: c => Dict c 

newtype a :- b Source #

Constructors

Sub (a => Dict b) 

(\\) :: a => (b => r) -> (a :- b) -> r infixl 1 Source #

Given that a :- b, derive something that needs a context b, using the context a

type family Forall (p :: k -> Constraint) :: Constraint Source #

A representation of the quantified constraint forall a. p a.

Instances

type Forall k p Source # 
type Forall k p

inst :: forall p a. Forall p :- p a Source #