:: Text -> String -package:universum

O(n) Convert a Text into a String.
A useful show-like function for debugging purposes.
Display the internal structure of a lazy Text.
O(n) Convert a Text into a String. Subject to fusion.
Must conform to a textually described format.
Warning: error remains in code
Throw an error with the given Text.
error applied to Text Since 0.4.1
A logging variant of error which uses unsafePerformIO to output a log message before calling error.
given a string, return a key that can be used in Indexable instances Of non persistent objects, such are cached objects (it changes fron execution to execution) . It uses addrHash
Show any value This shows any value, as long as it's not unlifted. The result should be equal to show instances, with the following caveats:
  • User-defined types (types not explicitly known to this library) with a custom Show instance will still be showable, but the result will be what the derived show instance would have done.
  • Record field names are not known at runtime, so they are not shown.
  • UNPACKed data is not visible to this library (if you compile with -O0 ghc will not unpack data, so that might be a workaround if necessary).
If classification fails, we show the actual closure.
Provided for type disambiguation in the presence of OverloadedStrings. Since 0.1.0.0
A specialised variant of showsPrec, using precedence context zero, and returning an ordinary String.