curry-frontend-1.0.3: Compile the functional logic language Curry to several intermediate formats

Copyright(c) 2016 Finn Teegen
LicenseBSD-3-clause
Maintainerbjp@informatik.uni-kiel.de
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Checks.InstanceCheck

Description

Before type checking, the compiler checks for every instance declaration that all necessary super class instances exist. Furthermore, the compiler infers the contexts of the implicit instance declarations introduced by deriving clauses in data and newtype declarations. The instances declared explicitly and automatically derived by the compiler are added to the instance environment . It is also checked that there are no duplicate instances and that all types specified in a default declaration are instances of the Num class.

Documentation