diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-03-13 18:23:48 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-03-13 18:23:48 +0800 |
commit | 8c6245fac35cdc9a1ef743d29eea9176448d350d (patch) | |
tree | 43755f230b1cfe0caee7d29156851479eb23f2b0 /src/Color.hs | |
parent | 84ee16536eabd4f637912d25643184cbcc118092 (diff) |
Diffstat (limited to 'src/Color.hs')
-rw-r--r-- | src/Color.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Color.hs b/src/Color.hs new file mode 100644 index 0000000..1d63fcd --- /dev/null +++ b/src/Color.hs @@ -0,0 +1,13 @@ +module Color where + +red :: String -> String +red s = "\x001b[31m" ++ s ++ "\x001b[0m" + +green :: String -> String +green s = "\x001b[32m" ++ s ++ "\x001b[0m" + +yellow :: String -> String +yellow s = "\x001b[33m" ++ s ++ "\x001b[0m" + +blue :: String -> String +blue s = "\x001b[34m" ++ s ++ "\x001b[0m" |