Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. viaShow :: Show a => a -> Doc ann

    prettyprinter Prettyprinter.Internal

    Convenience function to convert a Showable value to a Doc. If the String does not contain newlines, consider using the more performant unsafeViaShow.

  2. renderShowS :: SimpleDocStream ann -> ShowS

    prettyprinter Prettyprinter.Render.String

    Render a SimpleDocStream to a ShowS, useful to write Show instances based on the prettyprinter.

    instance Show MyType where
    showsPrec _ = renderShowS . layoutPretty defaultLayoutOptions . pretty
    

  3. fromShow :: Show a => a -> Builder

    blaze-builder Blaze.ByteString.Builder.Char.Utf8

    O(n). Serialize a value by Showing it and UTF-8 encoding the resulting String.

  4. fromShow :: Show a => a -> Builder

    blaze-builder Blaze.ByteString.Builder.Char8

    O(n). Serialize a value by Showing it and serializing the lower 8-bits of the resulting string.

  5. fromHtmlEscapedShow :: Show a => a -> Builder

    blaze-builder Blaze.ByteString.Builder.Html.Utf8

    O(n). Serialize a value by Showing it and then, HTML escaping and UTF-8 encoding the resulting String.

  6. gshow :: Data a => a -> String

    syb Data.Generics.Text

    Generic show: an alternative to "deriving Show"

  7. gshows :: Data a => a -> ShowS

    syb Data.Generics.Text

    Generic shows

  8. hShowCursor :: Handle -> IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

  9. traceShowId :: Show a => a -> a

    base-compat Debug.Trace.Compat

    Like traceShow but returns the shown value instead of a third value.

    >>> traceShowId (1+2+3, "hello" ++ "world")
    (6,"helloworld")
    (6,"helloworld")
    

  10. traceShowM :: (Show a, Applicative f) => a -> f ()

    base-compat Debug.Trace.Compat

    Like traceM, but uses show on the argument to convert it to a String.

    >>> :{
    do
    x <- Just 3
    traceShowM x
    y <- pure 12
    traceShowM y
    pure (x*2 + y)
    :}
    3
    12
    Just 18
    

Page 229 of many | Previous | Next