Skip to content

Commit

Permalink
improve directionality of certain expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
hexwell committed Apr 16, 2022
1 parent ba2abf0 commit e1b340f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hs/Vflow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parseBash = flip (parse B.parser) <*> (base sep >>> (B.ParserState sep))
"mingw32" -> '\\'

parseRoot :: String -> Filename -> IO (Either ParseError [Block])
parseRoot l@"bash" rootFile = runExceptT $ allFiles >>= concatMapM (parseVflow l)
parseRoot l@"bash" rootFile = allFiles >>= concatMapM (parseVflow l) & runExceptT
where
allFiles = (rootFile:) <$> parseBash rootFile

Expand Down
2 changes: 1 addition & 1 deletion hs/VflowParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ comment = do

variable :: Parser Variable
variable = do
pos <- getParserState <&> statePos
pos <- statePos <$> getParserState
name <- many $ noneOf " :\n"
comm <- optionMaybe comment
endOfLine
Expand Down

0 comments on commit e1b340f

Please sign in to comment.