Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

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

  1. footnoteShow :: (MonadTest m, Show a) => a -> m ()

    hedgehog Hedgehog.Internal.Property

    Logs a value to be displayed as additional information in the footer of the failure report.

  2. unsafeViaShow :: Show a => a -> Doc ann

    prettyprinter Prettyprinter

    Convenience function to convert a Showable value /that must not contain newlines/ to a Doc. If there may be newlines, use viaShow instead.

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

    prettyprinter Prettyprinter

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

  4. renderShowS :: SimpleDocStream ann -> ShowS

    prettyprinter Prettyprinter.Internal

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

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

  5. unsafeViaShow :: Show a => a -> Doc ann

    prettyprinter Prettyprinter.Internal

    Convenience function to convert a Showable value /that must not contain newlines/ to a Doc. If there may be newlines, use viaShow instead.

  6. 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.

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

  8. _Show :: (Show a, Read a) => Traversal' String a

    microlens Lens.Micro

    _Show targets the Haskell value in a String using Read, or nothing if parsing fails. Likewise, setting a Haskell value through this prism renders a String using Show.

    >>> ["abc","8","def","9"] & mapped . _Show %~ \x -> x + 1 :: Int
    ["abc","9","def","10"]
    
    Note that this prism is improper for types that don't satisfy read . show = id:
    >>> "25.9999999" & _Show %~ \x -> x :: Float
    "26.0"
    
    These functions from base can be expressed in terms of _Show:
    • Unsafely parsing a value from a String:
    read = (^?! _Show)
    
    
    • Safely parsing a value from a String:
    readMaybe = (^? _Show)
    
    

  9. 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.

  10. 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.

Page 229 of many | Previous | Next