File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ cabal-version: >=1.10
14
14
library
15
15
exposed-modules : Pingo.AST
16
16
build-depends :
17
- base >= 4.9 && < 4.10
17
+ base >= 4.8 && < 4.10
18
18
hs-source-dirs : src
19
19
default-language : Haskell2010
20
20
21
21
executable pingo
22
22
main-is : Main.hs
23
23
build-depends :
24
- base >= 4.9 && < 4.10 ,
24
+ base >= 4.8 && < 4.10 ,
25
25
parsec >= 3.1 && < 3.2 ,
26
26
parsec3-numbers == 0.1.0 ,
27
27
ansi-terminal >= 0.7 && < 1.0 ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ atom = do
54
54
answerSet :: Parser AnswerSet
55
55
answerSet = do
56
56
string " Answer: " *> many1 digit <* newline
57
- (atom <?> " a predicate or atom" ) `sepBy ` char ' '
57
+ (atom <?> " a predicate or atom" ) `sepEndBy ` char ' '
58
58
59
59
-- | The 'answerSets' parser collects a list of 'AnswerSet's
60
60
answerSets :: Parser [AnswerSet ]
@@ -63,8 +63,8 @@ answerSets = (answerSet <?> "an answer set") `endBy` newline
63
63
-- | This 'file' parser removes metadata printed by clingo
64
64
-- and returns the inner 'AnswerSet's
65
65
file :: Parser [AnswerSet ]
66
- file = try (anyTill (string " Answer: " )) *> answerSets
67
- <|> manyTill anyChar (lookAhead $ try ( string " UNSATISFIABLE" ) ) *> fail " No Answer Sets found"
66
+ file = try (anyTill (string " Answer: " )) *> answerSets
67
+ <|> anyTill ( string " UNSATISFIABLE" ) *> fail " No Answer Sets found"
68
68
69
69
-- | The 'parse' function takes 'String' input
70
70
-- and returns the 'AnswerSet's or a 'ParseError'
You can’t perform that action at this time.
0 commit comments