uvmhs-0.0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

UVMHS.Lib.Pretty.Doc

Documentation

data DocEnv Source #

Instances

Instances details
Show DocEnv Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Eq DocEnv Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

(==) :: DocEnv -> DocEnv -> Bool #

(/=) :: DocEnv -> DocEnv -> Bool #

Ord DocEnv Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

newtype Doc Source #

Constructors

Doc 

Fields

Instances

Instances details
Eq Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.RenderANSI

Methods

(==) :: Doc -> Doc -> Bool #

(/=) :: Doc -> Doc -> Bool #

Ord Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.RenderANSI

Methods

compare :: Doc -> Doc -> Ordering #

(<) :: Doc -> Doc -> Bool #

(<=) :: Doc -> Doc -> Bool #

(>) :: Doc -> Doc -> Bool #

(>=) :: Doc -> Doc -> Bool #

max :: Doc -> Doc -> Doc #

min :: Doc -> Doc -> Doc #

Append Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

(⧺) :: Doc -> Doc -> Doc Source #

Monoid Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Null Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

null :: Doc Source #

Pretty Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: Doc -> Doc Source #

Lift Doc Source # 
Instance details

Defined in UVMHS.Lib.THLiftInstances

Methods

lift :: Quote m => Doc -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Doc -> Code m Doc #

execDocWith :: (DocM () -> DocM ()) -> Doc -> DocA Source #

onDoc :: (DocM () -> DocM ()) -> Doc -> Doc Source #

onDoc2 :: (DocM () -> DocM () -> DocM ()) -> Doc -> Doc -> Doc Source #

ppUT :: -> Color -> Doc -> Doc Source #

ppClosed :: Doc -> Doc -> Doc -> Doc Source #

ppInf :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfl :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfr :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppPre :: ℕ64 -> Doc -> Doc -> Doc Source #

ppPost :: ℕ64 -> Doc -> Doc -> Doc Source #

ppInfSep :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInflSep :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfrSep :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInf' :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfl' :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfr' :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppInfSep' :: ℕ64 -> Doc -> Doc -> Doc -> Doc Source #

ppApp :: ToIter Doc t => Doc -> t -> Doc Source #

ppCollection :: ToIter Doc t => Doc -> Doc -> Doc -> t -> Doc Source #

ppRecord :: ToIter (Doc Doc) t => Doc -> t -> Doc Source #

ppMatrix :: (𝒩 m, 𝒩 n) => 𝕍S n HAlign -> 𝕍S m VAlign -> 𝕍S m (𝕍S n Doc) -> Doc Source #

ppMatrixCells :: (𝒩 m, 𝒩 n) => 𝕍S n HAlign -> 𝕍S m VAlign -> 𝕍S m (𝕍S n Doc) -> Doc Source #

class Pretty a where Source #

Methods

pretty :: a -> Doc Source #

Instances

Instances details
Pretty CallStack Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: CallStack -> Doc Source #

(Pretty Lit, Pretty 𝕊) => Pretty Atom Source # 
Instance details

Defined in Examples.Lang.Arith

Methods

pretty :: Atom -> Doc Source #

(Pretty Atom, Pretty Exp) => Pretty ExpPre Source # 
Instance details

Defined in Examples.Lang.Arith

Methods

pretty :: ExpPre -> Doc Source #

(Pretty , Pretty 𝔻, Pretty 𝕊) => Pretty Lit Source # 
Instance details

Defined in Examples.Lang.Arith

Methods

pretty :: Lit -> Doc Source #

(Pretty Lit, Pretty 𝕊) => Pretty Atom Source # 
Instance details

Defined in Examples.Lang.ArithBlocks

Methods

pretty :: Atom -> Doc Source #

(Pretty Atom, Pretty Exp, Pretty (𝐿 Exp)) => Pretty ExpPre Source # 
Instance details

Defined in Examples.Lang.ArithBlocks

Methods

pretty :: ExpPre -> Doc Source #

(Pretty , Pretty 𝔻, Pretty 𝕊) => Pretty Lit Source # 
Instance details

Defined in Examples.Lang.ArithBlocks

Methods

pretty :: Lit -> Doc Source #

(Pretty Lit, Pretty 𝕊) => Pretty Atom Source # 
Instance details

Defined in Examples.Lang.SExp

Methods

pretty :: Atom -> Doc Source #

(Pretty Atom, Pretty (𝐿 Exp)) => Pretty ExpPre Source # 
Instance details

Defined in Examples.Lang.SExp

Methods

pretty :: ExpPre -> Doc Source #

(Pretty , Pretty 𝔻, Pretty 𝕊) => Pretty Lit Source # 
Instance details

Defined in Examples.Lang.SExp

Methods

pretty :: Lit -> Doc Source #

Pretty Void Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: Void -> Doc Source #

Pretty Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: -> Doc Source #

Pretty Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: -> Doc Source #

Pretty ℕ16 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℕ16 -> Doc Source #

Pretty ℕ32 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℕ32 -> Doc Source #

Pretty ℕ64 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℕ64 -> Doc Source #

Pretty ℕ8 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℕ8 -> Doc Source #

Pretty Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: -> Doc Source #

Pretty ℚᴾ Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℚᴾ -> Doc Source #

Pretty Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: -> Doc Source #

Pretty ℝᴾ Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℝᴾ -> Doc Source #

Pretty Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: -> Doc Source #

Pretty ℤ16 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℤ16 -> Doc Source #

Pretty ℤ32 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℤ32 -> Doc Source #

Pretty ℤ64 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℤ64 -> Doc Source #

Pretty ℤ8 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ℤ8 -> Doc Source #

Pretty 𝔹 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝔹 -> Doc Source #

Pretty 𝔻 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝔻 -> Doc Source #

Pretty 𝔻ᴾ Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝔻ᴾ -> Doc Source #

Pretty 𝕊 Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕊 -> Doc Source #

Pretty Time Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: Time -> Doc Source #

Pretty TimeD Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: TimeD -> Doc Source #

Pretty Frame Source # 
Instance details

Defined in UVMHS.Lib.Dataframe

Methods

pretty :: Frame -> Doc Source #

(Pretty 𝔹, Pretty ℕ64, Pretty ℤ64, Pretty 𝔻, Pretty 𝕊) => Pretty FrameVal Source # 
Instance details

Defined in UVMHS.Lib.Dataframe

Methods

pretty :: FrameVal -> Doc Source #

Pretty GError Source # 
Instance details

Defined in UVMHS.Lib.Errors

Methods

pretty :: GError -> Doc Source #

Pretty LogDepth Source # 
Instance details

Defined in UVMHS.Lib.Logging

Methods

pretty :: LogDepth -> Doc Source #

Pretty LogLevel Source # 
Instance details

Defined in UVMHS.Lib.Logging

Methods

pretty :: LogLevel -> Doc Source #

(Pretty 𝔹, Pretty Formats, Pretty (𝕊 𝐼 𝕊), Pretty 𝕊) => Pretty ParserEnv Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

pretty :: ParserEnv -> Doc Source #

(Pretty (ℕ64 ℕ64), Pretty ℕ64) => Pretty Loc Source # 
Instance details

Defined in UVMHS.Lib.Parser.Loc

Methods

pretty :: Loc -> Doc Source #

Pretty (AddBT Loc) => Pretty LocRange Source # 
Instance details

Defined in UVMHS.Lib.Parser.Loc

Methods

pretty :: LocRange -> Doc Source #

(Pretty LocRange, Pretty (WindowL Doc Doc), Pretty (WindowR Doc Doc)) => Pretty ParserContext Source # 
Instance details

Defined in UVMHS.Lib.Parser.ParserContext

Pretty SrcCxt Source # 
Instance details

Defined in UVMHS.Lib.Parser.ParserContext

Methods

pretty :: SrcCxt -> Doc Source #

(Pretty (𝑃 𝕊), Pretty (𝕊 ParserErrorStackTraces)) => Pretty ParserErrorStackTraces Source # 
Instance details

Defined in UVMHS.Lib.Parser.ParserError

Pretty CharClass Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: CharClass -> Doc Source #

(Pretty 𝕊, Pretty , Pretty , Pretty 𝔻, Pretty ) => Pretty TokenBasic Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Pretty TokenClassBasic Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Pretty TokenClassWSBasic Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

(Pretty 𝕊, Pretty , Pretty , Pretty 𝔻) => Pretty TokenWSBasic Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

(Pretty (𝑂 Color), Pretty (𝑂 𝔹)) => Pretty Formats Source # 
Instance details

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: Formats -> Doc Source #

(Pretty Color3Bit, Pretty ℕ8) => Pretty Color Source # 
Instance details

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: Color -> Doc Source #

Pretty Color3Bit Source # 
Instance details

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: Color3Bit -> Doc Source #

Pretty Doc Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: Doc -> Doc Source #

Pretty 𝕏 Source # 
Instance details

Defined in UVMHS.Lib.Variables

Methods

pretty :: 𝕏 -> Doc Source #

Pretty 𝕐 Source # 
Instance details

Defined in UVMHS.Lib.Variables

Methods

pretty :: 𝕐 -> Doc Source #

Pretty () Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: () -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝐼 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝐿 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: 𝑂 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝑃 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝑄 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: ID a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: AddBT a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: AddBot a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: AddNull a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: AddTop a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: ZOM a -> Doc Source #

Pretty a => Pretty (𝐼C a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝐼C a -> Doc Source #

(Storable a, Pretty a) => Pretty (𝕌 a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕌 a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕍 a -> Doc Source #

Pretty (ULCExp 𝒸) Source # 
Instance details

Defined in UVMHS.Lang.ULC

Methods

pretty :: ULCExp 𝒸 -> Doc Source #

Pretty (ULCExp_R 𝒸) Source # 
Instance details

Defined in UVMHS.Lang.ULC

Methods

pretty :: ULCExp_R 𝒸 -> Doc Source #

(Pretty a, Pretty (a -> a -> a)) => Pretty (ADB a) Source # 
Instance details

Defined in UVMHS.Lib.AD

Methods

pretty :: ADB a -> Doc Source #

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

Defined in UVMHS.Lib.AD

Methods

pretty :: ADF a -> Doc Source #

(Pretty (𝔹 v), Pretty (ℕ64 v), Pretty (ℤ64 v), Pretty (𝔻 v), Pretty (𝕊 v)) => Pretty (FrameGrouping v) Source # 
Instance details

Defined in UVMHS.Lib.Dataframe

(Pretty (WindowR Doc Doc), Pretty ParserContext, Pretty (WindowL Doc Doc), Pretty (AddBT Loc), Pretty (𝑆 (ParserToken t))) => Pretty (ParserState t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

pretty :: ParserState t -> Doc Source #

(Pretty t, Pretty 𝔹, Pretty ParserContext, Pretty (WindowL Doc Doc)) => Pretty (ParserToken t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.ParserInput

Methods

pretty :: ParserToken t -> Doc Source #

(Pretty t, Pretty 𝔹, Pretty ParserContext) => Pretty (PreParserToken t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.ParserInput

(Pretty (WindowR Doc Doc), Pretty ParserContext, Pretty (𝑆 (ParserToken t)), Pretty (𝐼C t)) => Pretty (LexDFAState t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: LexDFAState t -> Doc Source #

Pretty a => Pretty (𝑇A a) Source # 
Instance details

Defined in UVMHS.Lib.TreeNested

Methods

pretty :: 𝑇A a -> Doc Source #

Pretty a => Pretty (𝑇D a) Source # 
Instance details

Defined in UVMHS.Lib.TreeNested

Methods

pretty :: 𝑇D a -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: [a] -> Doc Source #

(Pretty k, Pretty v) => Pretty (k v) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: (k v) -> Doc Source #

(Pretty a, Pretty b) => Pretty (a b) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: (a b) -> Doc Source #

(Pretty a, Pretty b) => Pretty (a b) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.DerivedInstances

Methods

pretty :: (a b) -> Doc Source #

(Pretty e, Pretty a) => Pretty (𝐴 e a) Source # 
Instance details

Defined in UVMHS.Lib.Annotated

Methods

pretty :: 𝐴 e a -> Doc Source #

Pretty (𝑂 (RegexResult o u)) => Pretty (RegexInfo o u) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: RegexInfo o u -> Doc Source #

(Pretty ℕ64, Pretty Formats, Pretty (𝑂 o), Pretty u) => Pretty (RegexResult o u) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: RegexResult o u -> Doc Source #

(Pretty ℕ64, Pretty (𝕍 (SSubstElem s e)), Pretty ℤ64) => Pretty (DSubst s e) Source # 
Instance details

Defined in UVMHS.Lib.Substitution

Methods

pretty :: DSubst s e -> Doc Source #

(Pretty s, Pretty e) => Pretty (SSubstElem s e) Source # 
Instance details

Defined in UVMHS.Lib.Substitution

Methods

pretty :: SSubstElem s e -> Doc Source #

(Pretty s, Pretty e) => Pretty (Subst s e) Source # 
Instance details

Defined in UVMHS.Lib.Substitution

Methods

pretty :: Subst s e -> Doc Source #

(Pretty s, Pretty e) => Pretty (SubstElem s e) Source # 
Instance details

Defined in UVMHS.Lib.Substitution

Methods

pretty :: SubstElem s e -> Doc Source #

(Pretty a, Pretty 𝔹, Pretty i) => Pretty (WindowL i a) Source # 
Instance details

Defined in UVMHS.Lib.Window

Methods

pretty :: WindowL i a -> Doc Source #

(Pretty a, Pretty 𝔹, Pretty i) => Pretty (WindowR i a) Source # 
Instance details

Defined in UVMHS.Lib.Window

Methods

pretty :: WindowR i a -> Doc Source #

(Pretty a, Pretty b) => Pretty (a, b) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: (a, b) -> Doc Source #

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

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: (() -> a) -> Doc Source #

(Storable a, Pretty a) => Pretty (𝕌S n a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕌S n a -> Doc Source #

Pretty a => Pretty (𝕍S n a) Source # 
Instance details

Defined in UVMHS.Lib.Pretty.Doc

Methods

pretty :: 𝕍S n a -> Doc Source #

(Pretty (s₁ SubstElem s₂ e), Pretty (s₂ DSubst s₂ e)) => Pretty (GSubst s₁ s₂ e) Source # 
Instance details

Defined in UVMHS.Lib.Substitution

Methods

pretty :: GSubst s₁ s₂ e -> Doc Source #

(Pretty (f (ns ms) a), Pretty (f (ns ms) a -> f (ns ms) a -> f (ns ms) a)) => Pretty (ADFB ns f ms a) Source # 
Instance details

Defined in UVMHS.Lib.AD

Methods

pretty :: ADFB ns f ms a -> Doc Source #

Pretty (f (ns ms) a) => Pretty (ADFF ns f ms a) Source # 
Instance details

Defined in UVMHS.Lib.AD

Methods

pretty :: ADFF ns f ms a -> Doc Source #

(Pretty (𝑃 t), Pretty ℕ64, Pretty ((t c) 𝕍 ℕ64), Pretty (𝕍 (𝑂 (RegexResult o u))), Pretty (𝕍 𝔹)) => Pretty (DFA c t o u) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: DFA c t o u -> Doc Source #

(Pretty (RegexResult o u), Pretty (RegexAtom c t o u), Pretty (𝑃 (Regex c t o u)), Pretty (𝐿 (Regex c t o u)), Pretty (Regex c t o u)) => Pretty (RegexU c t o u) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: RegexU c t o u -> Doc Source #

(Pretty t, Pretty (𝑃 t), Pretty c) => Pretty (RegexAtom c t o u) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Regex

Methods

pretty :: RegexAtom c t o u -> Doc Source #

class PrettyM m a | a -> m where Source #

Methods

mpretty :: a -> m Doc Source #