curry-base-1.1.1: Functions for manipulating Curry programs

Copyright(c) 2015 Björn Peemöller
LicenseBSD-3-clause
Maintainerbjp@informatik.uni-kiel.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Curry.FlatCurry.Pretty

Description

This module implements a pretty printer for FlatCurry modules.

Synopsis

Documentation

ppProg :: Prog -> Doc Source #

pretty-print a FlatCurry module

ppHeader :: String -> [TypeDecl] -> [FuncDecl] -> Doc Source #

pretty-print the module header

ppExports :: [TypeDecl] -> [FuncDecl] -> Doc Source #

pretty-print the export list

ppImport :: String -> Doc Source #

pretty-print an import statement

ppTypeDecl :: TypeDecl -> Doc Source #

pretty-print a type declaration

ppTypeExpr :: Int -> TypeExpr -> Doc Source #

pretty-print a type expression

ppFuncDecl :: FuncDecl -> Doc Source #

pretty-print a function declaration

ppExpr :: Int -> Expr -> Doc Source #

pretty-print an expression

ppLiteral :: Literal -> Doc Source #

pretty-print a literal

ppOpDecl :: OpDecl -> Doc Source #

pretty-print a operator fixity declaration