diff options
Diffstat (limited to 'utils.hs')
| -rw-r--r-- | utils.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,9 +8,9 @@ import Control.Applicative (ZipList (ZipList, getZipList)) infixr 6 $> -splitOn :: (Char -> Bool) -> String -> [String] +splitOn :: (a -> Bool) -> [a] -> [[a]] splitOn p s = case dropWhile p s of - "" -> [] + [] -> [] s' -> w : splitOn p s'' where (w, s'') = break p s' |
