File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3451,12 +3451,12 @@ isNotOk p s = parsesCleanly p s == Nothing -- The string does not parse
3451
3451
-- If the parser matches the string, return Right [ParseNotes+ParseProblems]
3452
3452
-- If it does not match the string, return Left [ParseProblems]
3453
3453
getParseOutput parser string = runIdentity $ do
3454
- (res, sys ) <- runParser testEnvironment
3455
- (parser >> eof >> getState) " -" string
3456
- case ( res, sys) of
3457
- ( Right userState, systemState) ->
3458
- return $ Right $ parseNotes userState ++ parseProblems systemState
3459
- ( Left _, systemState) -> return $ Left $ parseProblems systemState
3454
+ (res, systemState ) <- runParser testEnvironment
3455
+ (parser >> eof >> getState) " -" string
3456
+ return $ case res of
3457
+ Right userState ->
3458
+ Right $ parseNotes userState ++ parseProblems systemState
3459
+ Left _ -> Left $ parseProblems systemState
3460
3460
3461
3461
-- If the parser matches the string, return Just whether it was clean (without emitting suggestions)
3462
3462
-- Otherwise, Nothing
You can’t perform that action at this time.
0 commit comments