Fix Hackage Formatting (#134)
This commit is contained in:
@@ -147,11 +147,10 @@ putLText :: MonadIO m => TL.Text -> m ()
|
|||||||
|
|
||||||
* **How do I write manual Show instances if ``show`` isn't provided?**
|
* **How do I write manual Show instances if ``show`` isn't provided?**
|
||||||
|
|
||||||
Generally speaking writing manual instances of Show is a [Haskell antipattern](
|
Generally speaking writing manual instances of Show is a
|
||||||
http://www.stephendiehl.com/posts/strings.html) because it produces
|
[Haskell antipattern](http://www.stephendiehl.com/posts/strings.html) because it produces
|
||||||
law-violating instances of Show. You probably want to use a [pretty
|
law-violating instances of Show. You probably want to use a
|
||||||
printer](https://hackage.haskell.org/package/wl-pprint-text) library for custom
|
[pretty printer](https://hackage.haskell.org/package/wl-pprint-text) library for custom printing.
|
||||||
printing.
|
|
||||||
|
|
||||||
If backwards compatibility is needed then the base library can be imported
|
If backwards compatibility is needed then the base library can be imported
|
||||||
manually.
|
manually.
|
||||||
|
|||||||
Reference in New Issue
Block a user