contract-0.1.0.0
Copyright(c) Xie Ruifeng 2020
LicenseAGPL-3
Maintainerkrantz.xrf@outlook.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Language.Contract.Pretty

Description

 
Synopsis

Documentation

makeVarName :: Natural -> String Source #

Make a variable name from its internal index.

class PrettyPrint a where Source #

Pretty show for terms and types.

Minimal complete definition

prettyWith | pretty

Methods

prettyWith :: Natural -> a -> String Source #

Pretty show provided the number of layers of lambda abstractions.

pretty :: a -> String Source #

Pretty show assuming no outside lambda abstractions.

Instances

Instances details
PrettyPrint Term Source # 
Instance details

Defined in Language.Contract.Pretty

PrettyPrint Type Source # 
Instance details

Defined in Language.Contract.Pretty

PrettyPrint a => PrettyPrint [a] Source # 
Instance details

Defined in Language.Contract.Pretty

Methods

prettyWith :: Natural -> [a] -> String Source #

pretty :: [a] -> String Source #

prettyPrintWith :: PrettyPrint a => Natural -> a -> IO () Source #

Pretty print, a putStrLn after a prettyWith.

prettyPrint :: PrettyPrint a => a -> IO () Source #

Pretty print, a putStrLn after a pretty.