Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

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

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

    hedgehog Hedgehog

    Annotates the source code with a value that might be useful for debugging a test failure.

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

    hedgehog Hedgehog

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

  3. annotateShow :: (MonadTest m, Show a, HasCallStack) => a -> m ()

    hedgehog Hedgehog.Internal.Property

    Annotates the source code with a value that might be useful for debugging a test failure.

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

  5. _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)
    
    

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

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

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

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

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

Page 228 of many | Previous | Next