diff options
author | tv <tv@shackspace.de> | 2014-12-28 22:16:47 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-12-28 22:16:47 +0100 |
commit | b1aa17616f56517fa83607296c25ee6c333968c1 (patch) | |
tree | b9c2ed97dc1a7446b3009f5597cd7ca5183fea2f /Utils.hs | |
parent | 1e2180c07b45a31de87439160fbe5dde64a24dab (diff) |
purge a bit of legacy & cruft
There's still both around, though..^_^
Diffstat (limited to 'Utils.hs')
-rw-r--r-- | Utils.hs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |