mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-21 18:59:32 -06:00
Better help.
This commit is contained in:
@@ -311,6 +311,12 @@ type WParser a b = [a] -> [(b,[a])] -- old Wadler style parser
|
||||
wParseResults :: WParser a b -> [a] -> [b]
|
||||
wParseResults p aa = [b | (b,[]) <- p aa]
|
||||
|
||||
paragraphs :: String -> [String]
|
||||
paragraphs = map unlines . chop . lines where
|
||||
chop [] = []
|
||||
chop ss = let (ps,rest) = break empty ss in ps : chop (dropWhile empty rest)
|
||||
empty = all isSpace
|
||||
|
||||
-- printing
|
||||
|
||||
indent :: Int -> String -> String
|
||||
|
||||
Reference in New Issue
Block a user