[ANNOUNCE] rainbow - print colored text on UNIX-like systems

Hi all, rainbow is a simple package to help you print colored text on UNIX-like systems. It's different from packages like terminfo (upon which it is based) and ansi-terminal in two ways. First, rainbow assumes you print text one "chunk" at a time. The properties of the terminal are reset with every chunk. That way you do not need to remember what the terminal's properties were before you print a new chunk. One chunk does not affect the next chunk. It's a state-free model that fits in well with functional programming. Second, rainbow makes it easy to use both 8- and 256-color terminals. Some sample things you can do in ghci: :set -XOverloadedStrings :m +System.Console.Rainbow putChunkLn $ "Hello bold green world!" <> f_green <> bold putChunkLn $ "Red on 8-color, pink on 256-color" <> f_red <> c256_f_201 mapM_ putChunk ["green on blue" <> f_green <> b_blue, " ", "blue on green" <> f_blue <> b_green, "\n"] So, add some color to things: http://hackage.haskell.org/package/rainbow

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/06/13 19:10, Omari Norman wrote:
Hi all,
rainbow is a simple package to help you print colored text on UNIX-like systems. It's different from packages like terminfo (upon which it is based) and ansi-terminal in two ways. First, rainbow assumes you print text one "chunk" at a time. The properties of the terminal are reset with every chunk. That way you do not need to remember what the terminal's properties were before you print a new chunk. One chunk does not affect the next chunk. It's a state-free model that fits in well with functional programming.
Second, rainbow makes it easy to use both 8- and 256-color terminals.
Some sample things you can do in ghci:
:set -XOverloadedStrings :m +System.Console.Rainbow putChunkLn $ "Hello bold green world!" <> f_green <> bold putChunkLn $ "Red on 8-color, pink on 256-color" <> f_red <> c256_f_201 mapM_ putChunk ["green on blue" <> f_green <> b_blue, " ", "blue on green" <> f_blue <> b_green, "\n"]
So, add some color to things:
http://hackage.haskell.org/package/rainbow
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
For whatever reason, your Haddock documentation is not visible on Hackage. - -- Mateusz K. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJRtMj1AAoJEM1mucMq2pqXogkP/24iaGWcDxf4q2IV/lxrRujF YW8qP6XPx72K1DJsDwk0ZeHQ9UBZEnFxz9vY248l6f8Rg9rTdHpXX8zWHSebxtVM 7D7lt0PmtxT5PnTVQGNc75j4hqUH6Gh5Ig6hUm4vKLH2jyAAzkQ6VNA7k/oPAxMP uHTGV2Kt8FCfiwtTY4MAlch3emnexPWRtjBHtJoVXwSgxTnUoXm6MoPJTyPTqaX3 zfd/YBC38VJNAzIHzbnh3KHymcfgCD9XyrGPxKzX/NF5T6zEPymsJw7aMUjVN7bc wlry1gRGXu02zj6n52SI1W6cYWrHMuxUPYufoPM4GZ9cb0Cqb7hAa1AcE4b/HOoU sY7vczBND+85Dgyf3HkjSWEtLszjxDMf6hPc5mGTcgwoDMqwXybImx8kVZZ2EAcJ 59QYTNjDkdpI5nvQ0qN2GzK4ZPeHHhiwrZ0foff7zmQ+sp9gwvYHoTMFHpP4VN69 MoiKedtc68WFXfpLfb4VkLdkUOyMBsJE93j3kStx2m6L7zkss70QE72jfeOqWnHk GOmAA/kPj4/4IB4DcuRwcXQsgdeb5lQo5duF7gwhfP6QyvcqbGe1WgM27m02MvRc W010UXwQh991K5wH8YSNU/OybyPg3iozA4/73lwQ8D9KVcIa+Kn31rPKB45ka1P5 QVo/WwBbGiaXlr2Apb+L =RDjX -----END PGP SIGNATURE-----

On 2013-06-09 18:27, Mateusz Kowalczyk wrote:
For whatever reason, your Haddock documentation is not visible on Hackage.
It takes some time for Hackage to generate the package's documentation. It's an automated system that's run periodically.
participants (4)
-
"Gabríel A. Pétursson"
-
Mateusz Kowalczyk
-
Omari Norman
-
Simon Hengel