This commit is contained in:
Mahdi Dibaiee 2017-03-30 15:45:17 +04:30
parent 9e3de66aab
commit 0fd71a758d
3 changed files with 16 additions and 2 deletions

View File

@ -3,5 +3,4 @@ import Text.Termcolor.Style
import qualified Text.Termcolor.Foreground as F
import qualified Text.Termcolor.Background as B
main = do
putStrLn $ format $ underline . bold . (light . B.cyan) . (light . F.red) $ read "Hello guys!"
main = putStrLn . format . underline . bold . (light . B.cyan) . (F.red) $ read "Hello World!"

15
README.md Normal file
View File

@ -0,0 +1,15 @@
termcolor
=========
Composable terminal colors for Haskell.
```haskell
import Text.Termcolor
import Text.Termcolor.Style
import qualified Text.Termcolor.Foreground as F
import qualified Text.Termcolor.Background as B
main = putStrLn . format . underline . bold . (light . B.cyan) . (F.red) $ read "Hello World!"
```
![demo output](https://github.com/mdibaiee/termcolor/tree/master/raw/demo.jpg)

BIN
demo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB