From 2f619f3ebd721990c363b2be72844ddcb851f47d Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Sat, 2 Jul 2016 17:57:44 -0400 Subject: [PATCH] Link to pretty printer library. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61e46f96a..5c329cd93 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,9 @@ putLText :: MonadIO m => TL.Text -> m () Generally speaking writing manual instances of Show is a [Haskell antipattern]( http://www.stephendiehl.com/posts/strings.html) because it produces -law-violating instances of Show. You probably want to use a pretty printer -library for custom printing. +law-violating instances of Show. You probably want to use a [pretty +printer](https://hackage.haskell.org/package/wl-pprint-text) library for custom +printing. If backwards compatibility is needed then the base library can be imported manually. @@ -114,6 +115,9 @@ manually. import GHC.Show (Show(..)) ``` +Automatic deriving of ``Show`` for your types is still supported since the class +is in scope by default. + * **Partial functions like ``undefined`` and ``error`` raise compiler warnings on usage.**