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.
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.
unsafeViaShow :: Show a => a -> Doc annprettyprinter Prettyprinter Convenience function to convert a Showable value /that must not contain newlines/ to a Doc. If there may be newlines, use viaShow instead.
viaShow :: Show a => a -> Doc annprettyprinter Prettyprinter Convenience function to convert a Showable value to a Doc. If the String does not contain newlines, consider using the more performant unsafeViaShow.
renderShowS :: SimpleDocStream ann -> ShowSprettyprinter 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
unsafeViaShow :: Show a => a -> Doc annprettyprinter 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.
viaShow :: Show a => a -> Doc annprettyprinter 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.
renderShowS :: SimpleDocStream ann -> ShowSprettyprinter 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
_Show :: (Show a, Read a) => Traversal' String amicrolens 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)
fromShow :: Show a => a -> Builderblaze-builder Blaze.ByteString.Builder.Char.Utf8 O(n). Serialize a value by Showing it and UTF-8 encoding the resulting String.
fromShow :: Show a => a -> Builderblaze-builder Blaze.ByteString.Builder.Char8 O(n). Serialize a value by Showing it and serializing the lower 8-bits of the resulting string.