Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. pPrintStringForceColorDarkBg :: MonadIO m => String -> m ()

    pretty-simple Text.Pretty.Simple

    Alias for pPrintStringForceColor.

  2. pPrintStringForceColorLightBg :: MonadIO m => String -> m ()

    pretty-simple Text.Pretty.Simple

    Just like pPrintStringForceColorDarkBg, but for printing to a light background.

  3. pPrintStringLightBg :: MonadIO m => String -> m ()

    pretty-simple Text.Pretty.Simple

    Just like pPrintStringDarkBg, but for printing to a light background.

  4. pPrintStringNoColor :: MonadIO m => String -> m ()

    pretty-simple Text.Pretty.Simple

    Similar to pPrintString, but doesn't print in color. However, data types will still be indented nicely.

    >>> pPrintStringNoColor $ show $ Just ["hello", "bye"]
    Just
    [ "hello"
    , "bye"
    ]
    

  5. pPrintStringOpt :: MonadIO m => CheckColorTty -> OutputOptions -> String -> m ()

    pretty-simple Text.Pretty.Simple

    Similar to pPrintOpt, but the last argument is a string representing a data structure that has already been showed.

    >>> let foo = show (1, (2, "hello", 3))
    
    >>> pPrintStringOpt CheckColorTty defaultOutputOptionsNoColor foo
    ( 1
    ,
    ( 2
    , "hello"
    , 3
    )
    )
    

  6. DoNotEscapeNonPrintable :: StringOutputStyle

    pretty-simple Text.Pretty.Simple.Internal.Printer

    Output non-printable characters without modification.

  7. EscapeNonPrintable :: StringOutputStyle

    pretty-simple Text.Pretty.Simple.Internal.Printer

    Replace non-printable characters with hexadecimal escape sequences.

  8. escapeNonPrintable :: String -> String

    pretty-simple Text.Pretty.Simple.Internal.Printer

    Replace non-printable characters with hex escape sequences.

    >>> escapeNonPrintable "\x1\x2"
    "\\x1\\x2"
    
    Newlines will not be escaped.
    >>> escapeNonPrintable "hello\nworld"
    "hello\nworld"
    
    Printable characters will not be escaped.
    >>> escapeNonPrintable "h\101llo"
    "hello"
    

  9. logPrint :: forall a (m :: Type -> Type) . (Show a, MonadIO m) => LogAction m a

    co-log-core Colog.Core.IO

    Action that prints to stdout using Show. This action does not flush the output buffer. If buffering mode is block buffering, the effect of this action can be delayed.

    >>> logPrint <& 5
    5
    

  10. logPrintHandle :: forall a (m :: Type -> Type) . (Show a, MonadIO m) => Handle -> LogAction m a

    co-log-core Colog.Core.IO

    Action that prints to a Handle using Show. This action does not flush the output buffer. If buffering mode is block buffering, the effect of this action can be delayed.

    >>> logPrintHandle stderr <& 5
    5
    

Page 299 of many | Previous | Next