datafix-0.0.1.0: Fixing data-flow problems

Copyright(c) Sebastian Graf 2017-2020
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 (p :: k -> Constraint) Source # 
Instance details

Defined in Datafix.Utils.Constraints

type Forall (p :: k -> Constraint)

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