summaryrefslogtreecommitdiffstats
path: root/Utils.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-01-01 23:53:30 +0100
committertv <tv@shackspace.de>2015-01-01 23:53:30 +0100
commit5d556b147a593f1b8c8127883055ad07ee347af9 (patch)
tree6697766faff1510492cb1c7f38c8fc1790838add /Utils.hs
parent67aa6764bfafabda51eb270e01aaf0fc638f380f (diff)
colorize quoted lines
Diffstat (limited to 'Utils.hs')
-rw-r--r--Utils.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utils.hs b/Utils.hs
index 8d1f624..b0dcf87 100644
--- a/Utils.hs
+++ b/Utils.hs
@@ -21,3 +21,9 @@ padl n c s =
if length s < n
then padl n c (c:s)
else s
+
+padr :: Int -> a -> [a] -> [a]
+padr n c s =
+ if length s < n
+ then padr n c (s ++ [c])
+ else s