purescript-0.4.2.1: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Sugar

Description

Desugaring passes

Synopsis

Documentation

desugar :: [Module] -> Either String [Module]Source

The desugaring pipeline proceeds as follows:

  • Desugar let bindings
  • Introduce type synonyms for type class dictionaries
  • Rebracket user-defined binary operators
  • Desugar do-notation using the Prelude.Monad type class
  • Desugar top-level case declarations into explicit case expressions
  • Desugar type declarations into value declarations with explicit type annotations
  • Group mutually recursive value and data declarations into binding groups.