Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pretty printing for expressions.
Synopsis
- class Pretty a where
- pretty :: a -> String
- prettysPrec :: Int -> a -> ShowS
- prettys :: Pretty a => a -> ShowS
- class Pretty1 t where
- pretty1 :: t a -> String
- prettys1Prec :: Int -> t a -> ShowS
- prettys1 :: Pretty1 t => t a -> ShowS
- class Pretty2 op where
- prettys2 :: (Pretty2 op, Pretty1 t) => op t a -> ShowS
- class Pretty3 h where
- prettys3 :: (Pretty3 h, Pretty2 s, Pretty1 t) => h s t a -> ShowS
- putPretty :: Pretty a => a -> IO ()
- prettys1PrecBinop :: (Pretty1 f, Pretty1 g) => Int -> String -> Int -> f a -> g b -> ShowS
- prettys1PrecUnop :: Pretty1 t => Int -> String -> Int -> t a -> ShowS
Classes
Instances
Pretty () Source # | |
Defined in Language.Expression.Pretty | |
Pretty String Source # | |
Pretty a => Pretty [a] Source # | |
Defined in Language.Expression.Pretty | |
Pretty a => Pretty (Maybe a) Source # | |
Pretty1 t => Pretty (t a) Source # | |
Defined in Language.Expression.Pretty | |
(Pretty l, Pretty a) => Pretty (Command l a) Source # | |
(Pretty l, Pretty a) => Pretty (PropAnn l a) Source # | |
(Pretty2 expr, Pretty1 var, Pretty cmd) => Pretty (AnnSeq expr var cmd) Source # | |
(Pretty1 var, Pretty2 expr) => Pretty (Assignment expr var) Source # | |
Defined in Language.Verification.Conditions pretty :: Assignment expr var -> String Source # prettysPrec :: Int -> Assignment expr var -> ShowS Source # |
class Pretty2 op where Source #
pretty2 :: Pretty1 t => op t a -> String Source #
prettys2Prec :: Pretty1 t => Int -> op t a -> ShowS Source #
Instances
(Pretty3 h, Pretty2 s) => Pretty2 (h s :: (k3 -> Type) -> k4 -> Type) Source # | |
Pretty1 t => Pretty2 (BV t :: (k -> Type) -> k -> Type) Source # | |
Pretty2 op => Pretty2 (HFree op :: (k -> Type) -> k -> Type) Source # | |
Pretty3 h => Pretty2 (SFree h :: (k -> Type) -> k -> Type) Source # | |
(Pretty2 h, Pretty1 t) => Pretty2 (Scoped h t :: (k -> Type) -> k -> Type) Source # | |
(Pretty2 h, Pretty1 t) => Pretty2 (Scope t h :: (k -> Type) -> k -> Type) Source # | |
PrettyOp op => Pretty2 (GeneralOp op :: (k1 -> Type) -> k2 -> Type) Source # | |
Pretty2 LogicOp Source # | |
(Pretty2 op, Pretty2 (OpChoice ops)) => Pretty2 (OpChoice (op ': ops) :: (Type -> Type) -> Type -> Type) Source # | |
Pretty2 (OpChoice ([] :: [(Type -> Type) -> Type -> Type])) Source # | |
Pretty2 (OpChoice ops) => Pretty2 (HFree' ops :: (Type -> Type) -> Type -> Type) Source # | |