mpretty-0.1.0.0: a monadic, extensible pretty printing library

Safe HaskellNone

Text.MPretty.IsPretty

Documentation

class IsPretty t whereSource

Methods

pretty :: MonadPretty env out state m => t -> m ()Source

prettyDropIndent :: MonadPretty env out state m => t -> m ()Source

prettyList :: MonadPretty env out state m => [t] -> m ()Source

prettyDropIndentList :: MonadPretty env out state m => [t] -> m ()Source

Instances

prettyMapping :: (MonadPretty env out state m, IsPretty k, IsPretty v) => (k, v) -> m ()Source

ipPrint :: IsPretty a => a -> IO ()Source

ipPrintLn :: IsPretty a => a -> IO ()Source