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"