Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
grisette Grisette.Core Controls how to pretty-print a generic representation.
pprint :: PPrint a => a -> IO ()grisette Grisette.Core Pretty print a value to the standard output.
module Grisette.Internal.Core.Data.Class.
PPrint No documentation available.
class
GPPrint arity (f :: Type -> Type)grisette Grisette.Internal.Core.Data.Class.PPrint Generic PPrint class.
-
grisette Grisette.Internal.Core.Data.Class.PPrint Pretty printing of values. This class is similar to the Pretty class from the Prettyprinter package, but it also provides pretty printing with a given precedence level. We are able to derive instances of this class for algebraic data types. You may need the DerivingVia and DerivingStrategies extensions.
data X = ... deriving Generic deriving PPrint via (Default X)
The derived instance will pretty print the value with a format similar to the one used by ormolu. data family
PPrintArgs arity a anngrisette Grisette.Internal.Core.Data.Class.PPrint The arguments to the generic PPrint class.
-
grisette Grisette.Internal.Core.Data.Class.PPrint Controls how to pretty-print a generic representation.
pprint :: PPrint a => a -> IO ()grisette Grisette.Internal.Core.Data.Class.PPrint Pretty print a value to the standard output.
prettyPrintTerm :: Term t -> Doc anngrisette Grisette.Internal.SymPrim.Prim.Internal.Term Pretty-print a term, possibly eliding parts of it.
-
grisette Grisette.Internal.TH.Derivation.Derive PPrint classes that can be derived for GADTs. This includes: