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.
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 ]
pPrintStringDarkBg :: MonadIO m => String -> m ()pretty-simple Text.Pretty.Simple Alias for pPrintString.
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.
pPrintStringForceColorDarkBg :: MonadIO m => String -> m ()pretty-simple Text.Pretty.Simple Alias for pPrintStringForceColor.
pPrintStringForceColorLightBg :: MonadIO m => String -> m ()pretty-simple Text.Pretty.Simple Just like pPrintStringForceColorDarkBg, but for printing to a light background.
pPrintStringLightBg :: MonadIO m => String -> m ()pretty-simple Text.Pretty.Simple Just like pPrintStringDarkBg, but for printing to a light background.
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" ]
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 ) )
DoNotEscapeNonPrintable :: StringOutputStylepretty-simple Text.Pretty.Simple.Internal.Printer Output non-printable characters without modification.
EscapeNonPrintable :: StringOutputStylepretty-simple Text.Pretty.Simple.Internal.Printer Replace non-printable characters with hexadecimal escape sequences.