Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

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

    pretty-simple Text.Pretty.Simple

    Similar to pPrint, but the first argument is a String representing a data type that has already been showed.

    >>> pPrintString $ show [ Just (1, "hello"), Nothing ]
    [ Just
    ( 1
    , "hello"
    )
    , Nothing
    ]
    

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

    pretty-simple Text.Pretty.Simple

    Alias for pPrintString.

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

    pretty-simple Text.Pretty.Simple

    Similar to pPrintString, but print in color regardless of whether the output goes to a TTY or not. See pPrintString for an example of how to use this function.

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

    pretty-simple Text.Pretty.Simple

    Alias for pPrintStringForceColor.

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

    pretty-simple Text.Pretty.Simple

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

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

    pretty-simple Text.Pretty.Simple

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

  7. 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"
    ]
    

  8. 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
    )
    )
    

  9. DoNotEscapeNonPrintable :: StringOutputStyle

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

    Output non-printable characters without modification.

  10. EscapeNonPrintable :: StringOutputStyle

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

    Replace non-printable characters with hexadecimal escape sequences.

Page 187 of many | Previous | Next