packages feed

rainbox 0.24.0.0 → 0.24.2.0

raw patch · 5 files changed

+18/−5 lines, 5 files

Files

README.md view
@@ -13,7 +13,7 @@ =============  In addition to the Haddock documentation, a tutorial is available in-[the Rainbox.Tutorial module](lib/Rainbox/Tutorial.lhs).+[the Rainbox.Tutorial module](lib/Rainbox/Tutorial.hs).  Portability ===========
lib/Rainbox.hs view
@@ -39,6 +39,8 @@    -- * Rendering   , render+  , putBox+  , hPutBox    -- TODO add separator functions 
lib/Rainbox/Core.hs view
@@ -23,8 +23,9 @@ import qualified Data.Text as X import qualified Data.Traversable as T import           Control.Lens (Lens', lens)-import           Rainbow ( Chunk , Radiant , chunk , back)+import           Rainbow ( Chunk , Radiant , chunk , back, hPutChunks) import           Rainbow.Types (Chunk (_yarn))+import           System.IO  -- # Alignment @@ -497,6 +498,16 @@ -- you can print it using the functions in "Rainbow". render :: Orientation a => Box a -> Seq Chunk render = join . chunksFromRodRows . rodRows++-- | Renders a 'Box' to the given 'Handle'.  This uses 'hPutChunks' so consult+-- that function for more details on how this works; generally it is going to+-- use the maximum number of colors possible for your terminal.+hPutBox :: Orientation a => Handle -> Box a -> IO ()+hPutBox h b = hPutChunks h (F.toList . render $ b)++-- | Uses 'hPutBox' to render the given 'Box' to standard output.+putBox :: Orientation a => Box a -> IO ()+putBox = hPutBox stdout   -- # Tables
package.yaml view
@@ -4,7 +4,7 @@ name: rainbox synopsis: Two-dimensional box pretty printing, with colors description: Please see README.md-version: 0.24.0.0+version: 0.24.2.0 license: BSD3 license-file: LICENSE copyright: Copyright 2014-2019 Omari Norman
rainbox.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 03df0d1ce1bfd0f8730e79cebec65519b5fa5fe19f0be7d8a34e45c4421e8e91+-- hash: b80c0bd7e0f4ef8a73cf5054d2d7291826a9451fb9a736a9b751224890d95e80  name:           rainbox-version:        0.24.0.0+version:        0.24.2.0 synopsis:       Two-dimensional box pretty printing, with colors description:    Please see README.md category:       System