packages feed

pretty-display 0.1.2 → 0.1.3

raw patch · 2 files changed

+5/−4 lines, 2 files

Files

README.md view
@@ -2,7 +2,7 @@  [![Build Status](https://travis-ci.org/jsermeno/pretty-display.svg?branch=master)](https://travis-ci.org/jsermeno/pretty-display) [![Haskell Programming Language](https://img.shields.io/badge/language-Haskell-blue.svg)](Haskell.org)-[![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)](tl;dr Legal: BSD3)+![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)  In Haskell the `Show` typeclass is used to display a syntactically correct Haskell expression. However, there are times when you want to provide a richer display for a value while still retaining the benefits of having derived `Show` instances. This can be especially useful when working interactively in ghci. `pretty-display` provides a tiny registered package with the `Display` typeclass for just this purpose. @@ -18,7 +18,7 @@ :def npp (\_ -> return ":set -interactive-print=print") ``` -<img src="https://cloud.githubusercontent.com/assets/197051/20393285/4d04a098-aca9-11e6-85ea-a025c5e752f1.png" alt="ghci example" width="638" height="213">+<img src="https://cloud.githubusercontent.com/assets/197051/20393285/4d04a098-aca9-11e6-85ea-a025c5e752f1.png" alt="ghci example" width="638" height="213" />  ## Typeclass usage 
pretty-display.cabal view
@@ -1,7 +1,8 @@ name:                pretty-display-version:             0.1.2+version:             0.1.3 synopsis:            Typeclass for human-readable display-description:         Provides a typeclass and tools for working interactively within ghci.+description:         Typeclass for human-readable display. Provides tools for+                     working interactively within ghci. homepage:            https://github.com/githubuser/pretty-display license:             BSD3 license-file:        LICENSE