mpretty-0.1.0.0: a monadic, extensible pretty printing library

Safe HaskellNone

Text.MPretty.MonadPretty

Documentation

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

string :: MonadPretty env out state m => String -> m ()Source

space :: MonadPretty env out state m => Int -> m ()Source

tryFlat :: MonadPretty env out state m => m a -> m a -> m aSource

hardLine :: MonadPretty env out state m => m ()Source

flatFail :: MonadPretty env out state m => m a -> m aSource

nest :: MonadPretty env out state m => Int -> m a -> m aSource

group :: MonadPretty env out state m => m a -> m aSource

align :: MonadPretty env out state m => m a -> m aSource

hang :: MonadPretty env out state m => Int -> m a -> m aSource

precedence :: MonadPretty env out state m => (Precedence, Precedence) -> m a -> m aSource

style :: MonadPretty env out state m => Style -> m a -> m aSource

buffering :: MonadPretty env out state m => Buffering -> m a -> m aSource

doConsole :: MonadPretty env out state m => Bool -> m a -> m aSource

layoutWidth :: MonadPretty env out state m => Int -> m a -> m aSource

indentWidth :: MonadPretty env out state m => Int -> m a -> m aSource

buffer :: MonadPretty env out state m => m a -> m aSource

noBuffer :: MonadPretty env out state m => m a -> m aSource

console :: MonadPretty env out state m => m a -> m aSource

noConsole :: MonadPretty env out state m => m a -> m aSource

getBuff :: MonadPretty env out state m => m outSource

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

encloseSepPre :: MonadPretty env out state m => out -> out -> out -> Bool -> [m ()] -> m ()Source

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

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

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

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

infixOp :: MonadPretty env out state m => Direction -> Int -> Buffering -> m () -> m () -> m () -> m ()Source

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

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

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

sexpListCons :: MonadPretty env out state m => [m ()] -> Maybe (m ()) -> m ()Source

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

showStyle :: MonadPretty env out state m => m a -> m aSource

emitConsoleStateCodes :: MonadPretty env out state m => m ()Source

localConsole :: MonadPretty env out state m => (ConsoleState -> ConsoleState) -> m a -> m aSource

intensity :: MonadPretty env out state m => ConsoleIntensity -> m a -> m aSource

italicized :: MonadPretty env out state m => Bool -> m a -> m aSource

underlining :: MonadPretty env out state m => Underlining -> m a -> m aSource

blinkSpeed :: MonadPretty env out state m => BlinkSpeed -> m a -> m aSource

visible :: MonadPretty env out state m => Bool -> m a -> m aSource

swapFgBg :: MonadPretty env out state m => Bool -> m a -> m aSource

gcolor :: MonadPretty env out state m => ConsoleLayer -> ColorIntensity -> Color -> m a -> m aSource

color :: MonadPretty env out state m => ColorIntensity -> Color -> m a -> m aSource

localStyle :: MonadPretty env out state m => Lens Palette ConsoleState -> m a -> m aSource

punctuation :: MonadPretty env out state m => m a -> m aSource

literal :: MonadPretty env out state m => m a -> m aSource

binder :: MonadPretty env out state m => m a -> m aSource

keyword :: MonadPretty env out state m => m a -> m aSource

classifier :: MonadPretty env out state m => m a -> m aSource

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