print package:universum
Generalizes the
putStr family of functions for String likes
such as lazy and strict versions of
Text and
ByteString.
A caveat to using overloaded functions is that printing string
literals raises ambiguity errors in the presence of
OverloadedStrings. To avoid this problem wither add a type
annotation
putStr ("Hello World!" :: Text) or use one of the
type constrained functions
putText,
putLText etc.
You may add support for your own types by importing
Universum.Print.Internal and implementing
Print. However
be advised that only the functions in this module should be considered
stable, not the interface for
Print.
Support class to overload writing of string like values.