mirror of
https://github.com/The1Penguin/org-to-mafiauniverse.git
synced 2024-11-22 02:08:13 +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
|
||||
|
||||
fileParser :: Parser String
|
||||
fileParser = undefined
|
||||
fileParser = try $
|
||||
string "* " <|>
|
||||
string "** "
|
||||
|
||||
parseCli :: [String] -> IO String
|
||||
parseCli [] = return usage
|
||||
@ -32,8 +34,7 @@ parseCli [x, _] = return $ useArgs $ parseHelper argParse x
|
||||
parseCli _ = fail "Too many arugemnts"
|
||||
|
||||
argParse :: Parser String
|
||||
argParse =
|
||||
string "-" >> some alphaNumChar
|
||||
argParse = string "-" >> some alphaNumChar
|
||||
|
||||
useArgs :: String -> String
|
||||
useArgs [] = ""
|
||||
|
Loading…
Reference in New Issue
Block a user