mirror of
https://github.com/The1Penguin/org-to-mafiauniverse.git
synced 2024-11-22 10:18:12 +00:00
Switched autoformatter
This commit is contained in:
parent
cea8d45ddd
commit
3b6daaba8e
@ -20,7 +20,9 @@ parseFile :: String -> String
|
|||||||
parseFile = unlines . map (parseHelper fileParser) . lines
|
parseFile = unlines . map (parseHelper fileParser) . lines
|
||||||
|
|
||||||
fileParser :: Parser String
|
fileParser :: Parser String
|
||||||
fileParser = undefined
|
fileParser = try $
|
||||||
|
string "* " <|>
|
||||||
|
string "** "
|
||||||
|
|
||||||
parseCli :: [String] -> IO String
|
parseCli :: [String] -> IO String
|
||||||
parseCli [] = return usage
|
parseCli [] = return usage
|
||||||
@ -32,8 +34,7 @@ parseCli [x, _] = return $ useArgs $ parseHelper argParse x
|
|||||||
parseCli _ = fail "Too many arugemnts"
|
parseCli _ = fail "Too many arugemnts"
|
||||||
|
|
||||||
argParse :: Parser String
|
argParse :: Parser String
|
||||||
argParse =
|
argParse = string "-" >> some alphaNumChar
|
||||||
string "-" >> some alphaNumChar
|
|
||||||
|
|
||||||
useArgs :: String -> String
|
useArgs :: String -> String
|
||||||
useArgs [] = ""
|
useArgs [] = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user