X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=src%2FStringUtils.hs;h=52b1def19cfc02acde93a24cbf25b5949d4297dd;hp=b7d291c229acdc96f777f8b60078fbd991d3c0cd;hb=cf0e5470657c80d2e4db116b309e8ca35b4136ad;hpb=e13f2a1eced5f388b37bc0ed12e9db72eba4b5d4 diff --git a/src/StringUtils.hs b/src/StringUtils.hs index b7d291c..52b1def 100644 --- a/src/StringUtils.hs +++ b/src/StringUtils.hs @@ -5,14 +5,16 @@ where import Test.HUnit --- |Takes a list of strings, call them string1, string2, etc. and --- numbers them like a list. So, --- 1. string1 --- 2. string2 --- 3. etc. +-- | Takes a list of strings, call them string1, string2, etc. and +-- numbers them like a list. So, +-- +-- 1. string1 +-- 2. string2 +-- 3. etc. +-- listify :: [String] -> [String] -listify items = - zipWith (++) list_numbers items +listify = + zipWith (++) list_numbers where list_numbers = map show_with_dot [1::Integer ..] show_with_dot x = (show x) ++ ". "