Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- showDoc :: Doc ann -> String
- removeAnnotations :: Doc ann -> Doc ()
- class ClashPretty a where
- clashPretty :: a -> Doc ()
- fromPretty :: Pretty a => a -> Doc ()
Documentation
removeAnnotations :: Doc ann -> Doc () Source #
class ClashPretty a where Source #
A variant of Pretty
that is not polymorphic on the type of annotations.
This is needed to derive instances from Clash's pretty printer (PrettyPrec),
which annotates documents with Clash-specific information and, therefore,
fixes the type of annotations.
clashPretty :: a -> Doc () Source #
Instances
ClashPretty Type Source # | |
Defined in Clash.Core.Pretty clashPretty :: Type -> Doc () Source # | |
ClashPretty Term Source # | |
Defined in Clash.Core.Pretty clashPretty :: Term -> Doc () Source # | |
ClashPretty InScopeSet Source # | |
Defined in Clash.Core.VarEnv clashPretty :: InScopeSet -> Doc () Source # | |
ClashPretty TvSubst Source # | |
Defined in Clash.Core.Subst clashPretty :: TvSubst -> Doc () Source # | |
ClashPretty StackFrame Source # | |
Defined in Clash.Core.Evaluator.Types clashPretty :: StackFrame -> Doc () Source # | |
ClashPretty a => ClashPretty (UniqSet a) Source # | |
Defined in Clash.Unique clashPretty :: UniqSet a -> Doc () Source # | |
ClashPretty a => ClashPretty (UniqMap a) Source # | |
Defined in Clash.Unique clashPretty :: UniqMap a -> Doc () Source # | |
ClashPretty (Name a) Source # | |
Defined in Clash.Core.Pretty clashPretty :: Name a -> Doc () Source # | |
ClashPretty (Var a) Source # | |
Defined in Clash.Core.Pretty clashPretty :: Var a -> Doc () Source # |
fromPretty :: Pretty a => a -> Doc () Source #