Safe Haskell | Safe-Inferred |
---|
- module Util.MonadicPrettyPrintInternal
- class (Applicative m, Monad m) => MonadicPrettyPrintable m a where
- prettyPrint :: a -> m Doc
- prettyPrintBrief :: a -> m Doc
- prettyPrintPrec :: (MonadicPrettyPrintable m a, Precedence a) => a -> a -> m Doc
- prettyPrintBriefPrec :: (MonadicPrettyPrintable m a, Precedence a) => Int -> a -> m Doc
- ppBinaryOp :: (MonadicPrettyPrintable m a, Precedence a) => a -> m Doc -> a -> a -> m Doc
- ppBinaryOp' :: (MonadicPrettyPrintable m a, Precedence a) => a -> m Doc -> a -> a -> m Doc
- tabWidth :: Int
- tabIndent :: (Monad m, Applicative m) => m Doc -> m Doc
- shortDouble :: (Monad m, Applicative m) => Int -> Double -> m Doc
- commaSeparatedInt :: (Monad m, Applicative m) => Int -> m Doc
- angles :: (Monad m, Applicative m) => m Doc -> m Doc
- bars :: (Monad m, Applicative m) => m Doc -> m Doc
- list :: (Monad m, Applicative m) => m [Doc] -> m Doc
- dotSep :: (Monad m, Applicative m) => m [Doc] -> m Doc
- speakNth :: (Monad m, Applicative m) => Int -> m Doc
- punctuateFront :: (Monad m, Applicative m) => m Doc -> m [Doc] -> m [Doc]
- ellipsis :: (Applicative m, Monad m) => m Doc
Documentation
class (Applicative m, Monad m) => MonadicPrettyPrintable m a whereSource
prettyPrint :: a -> m DocSource
prettyPrintBrief :: a -> m DocSource
As prettyPrint, but yields a briefer description.
prettyPrintPrec :: (MonadicPrettyPrintable m a, Precedence a) => a -> a -> m DocSource
prettyPrintBriefPrec :: (MonadicPrettyPrintable m a, Precedence a) => Int -> a -> m DocSource
ppBinaryOp :: (MonadicPrettyPrintable m a, Precedence a) => a -> m Doc -> a -> a -> m DocSource
ppBinaryOp' :: (MonadicPrettyPrintable m a, Precedence a) => a -> m Doc -> a -> a -> m DocSource
shortDouble :: (Monad m, Applicative m) => Int -> Double -> m DocSource
Show a double d
printing only places
places after the decimal place.
commaSeparatedInt :: (Monad m, Applicative m) => Int -> m DocSource
Pretty prints an integer and separates it into groups of 3, separated by commas.
punctuateFront :: (Monad m, Applicative m) => m Doc -> m [Doc] -> m [Doc]Source
ellipsis :: (Applicative m, Monad m) => m DocSource