@@ -74,6 +74,15 @@ words' s = case dropWhile isSpace s of
74words : String -> List String
74words : String -> List String
75words s = map pack $ words' $ unpack s
75words s = map pack $ words' $ unpack s
77+lines' : List Char -> List (List Char)
78+lines' s = case dropWhile isNL s of
80+ s' => let (w, s'') = break isSpace s'
83+lines : String -> List String
84+lines s = map pack $ words' $ unpack s
78foldr1 : (a -> a -> a) -> List a -> a
87foldr1 : (a -> a -> a) -> List a -> a
79foldr1 f [x] = x
88foldr1 f [x] = x