add demo
This commit is contained in:
parent
9e3de66aab
commit
0fd71a758d
3
Main.hs
3
Main.hs
@ -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
15
README.md
Normal 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)
|
Loading…
Reference in New Issue
Block a user