on master help sign in
lines isn't words

A very small fix, fixing "lines". I assume this something someone forgot to fix after a copy/paste from the definition of "words".

commit6f1f35880a644d20a7c6f2815153e79f68f4c11a authorOzgur Akgun <ozgurakgun@gmail.com> dateSat 15 Dec 2012, 17:29 (14 years ago) parent55a55cc
1 file changed+3−3
lib/Prelude/Strings.idr+3−3
lib/Prelude/Strings.idr+3−3
@@ -84,11 +84,11 @@ words s = map pack $ words' $ unpack s
8484lines' : List Char -> List (List Char)
8585lines' s = case dropWhile isNL s of
8686 [] => []
87− s' => let (w, s'') = break isSpace s'
88− in w :: words' s''
87+ s' => let (w, s'') = break isNL s'
88+ in w :: lines' s''
8989
9090lines : String -> List String
91−lines s = map pack $ words' $ unpack s
91+lines s = map pack $ lines' $ unpack s
9292
9393partial
9494foldr1 : (a -> a -> a) -> List a -> a