Within LTS Haskell 20.8 (ghc-9.2.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
base Prelude base Text.Show base GHC.Show hedgehog Hedgehog.Internal.Prelude Cabal Distribution.Compat.Prelude.Internal ghc GHC.Prelude pipes Pipes.Prelude haskell-gi-base Data.GI.Base.ShortPrelude rio RIO.Prelude relude Relude.String.Conversion
Generalized version of show. Unlike show this function is polymorphic in its result type. This makes it more convenient to work with data types like Text or ByteString. However, if you pass the result of show to a function that expects polymorphic argument, this can break type inference, so use -XTypeApplications to specify the textual type explicitly.
>>> show (42 :: Int) "42" >>> show (42 :: Double) "42.0" >>> print (show @Text True) "True"
Page 1 of many | Next