Top-1.7: Constraint solving framework employed by the Helium Compiler.

Safe HaskellSafe-Infered

Top.Types.Classes

Contents

Description

Type classes and the standard reduction instances. A part of the code was taken from the paper Typing Haskell in Haskell.

Synopsis

Class predicates

Class environments and instances

emptyClassEnvironment :: ClassEnvironmentSource

The empty class environment

Class environment

superclasses :: String -> ClassEnvironment -> [String]Source

For example, Eq is a superclass of Ord

Head normal form

Entailment

Context reduction

newtype ReductionError a Source

Constructors

ReductionError a 

Instances

Standard class environment