clash-lib-0.6.21: CAES Language for Synchronous Hardware - As a Library

Copyright(C) 2012-2016, University of Twente
LicenseBSD2 (see the file LICENSE)
MaintainerChristiaan Baaij <christiaan.baaij@gmail.com>
Safe HaskellNone
LanguageHaskell2010

CLaSH.Core.Pretty

Description

Pretty printing class and instances for CoreHW

Synopsis

Documentation

class Pretty p where Source #

Pretty printing Show-like typeclass

Minimal complete definition

pprPrec

Methods

ppr :: (Applicative m, LFresh m) => p -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> p -> m Doc Source #

Instances

Pretty TyCon Source # 

Methods

ppr :: (Applicative m, LFresh m) => TyCon -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> TyCon -> m Doc Source #

Pretty Term Source # 

Methods

ppr :: (Applicative m, LFresh m) => Term -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Term -> m Doc Source #

Pretty Type Source # 

Methods

ppr :: (Applicative m, LFresh m) => Type -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Type -> m Doc Source #

Pretty DataCon Source # 

Methods

ppr :: (Applicative m, LFresh m) => DataCon -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> DataCon -> m Doc Source #

Pretty Literal Source # 

Methods

ppr :: (Applicative m, LFresh m) => Literal -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Literal -> m Doc Source #

Pretty Pat Source # 

Methods

ppr :: (Applicative m, LFresh m) => Pat -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Pat -> m Doc Source #

Pretty LitTy Source # 

Methods

ppr :: (Applicative m, LFresh m) => LitTy -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> LitTy -> m Doc Source #

Pretty a => Pretty [a] Source # 

Methods

ppr :: (Applicative m, LFresh m) => [a] -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> [a] -> m Doc Source #

Pretty (Name a) Source # 

Methods

ppr :: (Applicative m, LFresh m) => Name a -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Name a -> m Doc Source #

Pretty (Var Term) Source # 

Methods

ppr :: (Applicative m, LFresh m) => Var Term -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Var Term -> m Doc Source #

Pretty (Var Type) Source # 

Methods

ppr :: (Applicative m, LFresh m) => Var Type -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> Var Type -> m Doc Source #

Pretty (Id, Term) Source # 

Methods

ppr :: (Applicative m, LFresh m) => (Id, Term) -> m Doc Source #

pprPrec :: (Applicative m, LFresh m) => Rational -> (Id, Term) -> m Doc Source #

showDoc :: Pretty p => p -> String Source #

Print a Pretty thing to a String