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

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

Transformations.Newtypes

Description

After inserting dictionaries, the compiler removes all occurences of newtype declarations. Applications 'N x' in patterns and expressions, where N is a newtype constructor, are replaced by a x. The newtype declarations are replaced by type synonyms and partial applications of newtype constructors are changed into calls to id.

Documentation