summaryrefslogtreecommitdiffstats
path: root/Utils.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-28 22:16:47 +0100
committertv <tv@shackspace.de>2014-12-28 22:16:47 +0100
commitb1aa17616f56517fa83607296c25ee6c333968c1 (patch)
treeb9c2ed97dc1a7446b3009f5597cd7ca5183fea2f /Utils.hs
parent1e2180c07b45a31de87439160fbe5dde64a24dab (diff)
purge a bit of legacy & cruft
There's still both around, though..^_^
Diffstat (limited to 'Utils.hs')
-rw-r--r--Utils.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Utils.hs b/Utils.hs
index 2ccf4f7..8d1f624 100644
--- a/Utils.hs
+++ b/Utils.hs
@@ -14,3 +14,10 @@ withTempFile tmpdir template =
mintercalate :: Monoid b => b -> [b] -> b
mintercalate c (h:t) = foldl (\acc x -> acc <> c <> x) h t
mintercalate _ [] = mempty
+
+
+padl :: Int -> a -> [a] -> [a]
+padl n c s =
+ if length s < n
+ then padl n c (c:s)
+ else s