iterm-show-JuicyPixels (empty) → 0.1.0.0
raw patch · 7 files changed
+79/−0 lines, 7 filesdep +JuicyPixelsdep +basedep +iterm-showsetup-changedbinary-added
Dependencies added: JuicyPixels, base, iterm-show
Files
- ChangeLog.md +5/−0
- LICENSE +30/−0
- README.md +8/−0
- Setup.hs +2/−0
- doc/screen-cap.png binary
- iterm-show-JuicyPixels.cabal +27/−0
- src/ITermShow/JuicyPixels.hs +7/−0
+ ChangeLog.md view
@@ -0,0 +1,5 @@+# Revision history for iterm-show-JuicyPixels++## 0.1.0.0 -- 2018-10-10++* Provides Show instances for images that are PngSavable
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright (c) 2018, Luke Clifton++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above+ copyright notice, this list of conditions and the following+ disclaimer in the documentation and/or other materials provided+ with the distribution.++ * Neither the name of Luke Clifton nor the names of other+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,8 @@+# iterm-show-JuicyPixels++This package provides orphan Show instances for a range of Image types in the+JuicyPixels package. These are very useful for experimenting in GHCi.++The Show instances work with terminals compatible with the iterm-show package.++
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ doc/screen-cap.png view
binary file changed (absent → 188772 bytes)
+ iterm-show-JuicyPixels.cabal view
@@ -0,0 +1,27 @@+name: iterm-show-JuicyPixels+version: 0.1.0.0+synopsis: Orphan Show instances for JuciyPixels image types.+description:+ This package provides Show instances for graphical types in JuicyPixels.+ This allows them to be shown in a terminal that is supported by the+ iterm-show library. Especially handy when used in GHCi.+license: BSD3+license-file: LICENSE+author: Luke Clifton+maintainer: lukec@themk.net+homepage: https://github.com/luke-clifton/iterm-show-JuicyPixels+copyright: (c) 2018 Luke Clifton+category: Development+build-type: Simple+extra-source-files: ChangeLog.md, README.md, doc/*.png+cabal-version: >=1.10+source-repository head+ type: git+ location: https://github.com/luke-clifton/iterm-show-JuicyPixels+ ++library+ exposed-modules: ITermShow.JuicyPixels+ build-depends: base >=4.9 && <4.13, iterm-show, JuicyPixels+ hs-source-dirs: src+ default-language: Haskell2010
+ src/ITermShow/JuicyPixels.hs view
@@ -0,0 +1,7 @@+module ITermShow.JuicyPixels where++import ITermShow+import Codec.Picture (PngSavable(encodePng), Image)++instance PngSavable a => Show (Image a) where+ show = displayImageString . encodePng