Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lines :: Doc -> [Line]
- lines doc
- = if doc'==[]
- then []
- else line : lines (dropWhile (/= '\n') doc')
- where
- line = takeWhile (/= '\n') doc'
- doc' = (dropWhile (== '\n') doc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement