elm-syntax-0.3.0.0: Elm syntax and pretty-printing

Safe HaskellNone
LanguageHaskell2010

Language.Elm.Pretty

Contents

Synopsis

Modules

modules :: [Definition] -> HashMap Module (Doc ann) Source #

Group the given definitions by their defining module, and generate an Elm module for each group.

module_ :: Module -> [Definition] -> Doc ann Source #

Generate an Elm module containing the given definitions.

Environments

data Environment v Source #

A pretty-printing environment with local variables in v.

Constructors

Environment 

Fields

Pretty-printing names

local :: Local -> Doc ann Source #

field :: Field -> Doc ann Source #

Pretty-printing definitions

Pretty-printing expressions

Pretty-printing pattern

Pretty-printing types

type_ :: Environment v -> Int -> Type v -> Doc ann Source #