purescript-0.7.2.1: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Sugar.TypeDeclarations

Description

This module implements the desugaring pass which replaces top-level type declarations with type annotations on the corresponding expression.

Synopsis

Documentation

desugarTypeDeclarations :: (Functor m, Applicative m, MonadError MultipleErrors m) => [Declaration] -> m [Declaration] Source

Replace all top level type declarations with type annotations

desugarTypeDeclarationsModule :: (Functor m, Applicative m, MonadError MultipleErrors m) => [Module] -> m [Module] Source

Replace all top level type declarations in a module with type annotations