curry-frontend-2.0.0: Compile the functional logic language Curry to several intermediate formats
Copyright(c) 1999 - 2004 Wolfgang Lux
2005 Martin Engelke
2011 - 2015 Björn Peemöller
2016 Finn Teegen
LicenseBSD-3-clause
Maintainerbjp@informatik.uni-kiel.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Curry.Syntax.Pretty

Description

This module implements a pretty printer for Curry expressions. It was derived from the Haskell pretty printer provided in Simon Marlow's Haskell parser.

Synopsis

Documentation

pPrint :: Pretty a => a -> Doc Source #

Pretty-print something in isolation.

pPrintPrec :: Pretty a => Int -> a -> Doc Source #

Pretty-print something in a precedence context.

ppIdent :: Ident -> Doc Source #

Pretty print an identifier

Orphan instances

Pretty Tool Source # 
Instance details

Pretty Extension Source # 
Instance details

Pretty CaseType Source # 
Instance details

Pretty Literal Source # 
Instance details

Pretty Constraint Source # 
Instance details

Pretty QualTypeExpr Source # 
Instance details

Pretty TypeExpr Source # 
Instance details

Pretty FieldDecl Source # 
Instance details

Pretty NewConstrDecl Source # 
Instance details

Pretty ConstrDecl Source # 
Instance details

Pretty KindExpr Source # 
Instance details

Pretty IMethodDecl Source # 
Instance details

Pretty IDecl Source # 
Instance details

Pretty IImportDecl Source # 
Instance details

Pretty Interface Source # 
Instance details

Pretty Import Source # 
Instance details

Pretty ImportSpec Source # 
Instance details

Pretty ImportDecl Source # 
Instance details

Pretty Export Source # 
Instance details

Pretty ExportSpec Source # 
Instance details

Pretty ModulePragma Source # 
Instance details

Pretty (Var a) Source # 
Instance details

Methods

pPrint :: Var a -> Doc Source #

pPrintPrec :: Int -> Var a -> Doc Source #

pPrintList :: [Var a] -> Doc Source #

Pretty a => Pretty (Field a) Source # 
Instance details

Pretty (Alt a) Source # 
Instance details

Methods

pPrint :: Alt a -> Doc Source #

pPrintPrec :: Int -> Alt a -> Doc Source #

pPrintList :: [Alt a] -> Doc Source #

Pretty (Statement a) Source # 
Instance details

Pretty (InfixOp a) Source # 
Instance details

Pretty (Expression a) Source # 
Instance details

Pretty (Pattern a) Source # 
Instance details

Pretty (Lhs a) Source # 
Instance details

Methods

pPrint :: Lhs a -> Doc Source #

pPrintPrec :: Int -> Lhs a -> Doc Source #

pPrintList :: [Lhs a] -> Doc Source #

Pretty (Equation a) Source # 
Instance details

Pretty (Decl a) Source # 
Instance details

Methods

pPrint :: Decl a -> Doc Source #

pPrintPrec :: Int -> Decl a -> Doc Source #

pPrintList :: [Decl a] -> Doc Source #

Pretty (Module a) Source # 
Instance details