Skip to content

Commit e13e623

Browse files
committed
Parser: rm question
1 parent 52d6426 commit e13e623

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Nix/Parser.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ brackets = on between symbol "[" "]"
187187
-- colon = symbol ":"
188188
-- dot = symbol "."
189189

190-
question :: Parser Text
191-
question = symbol "?"
192-
193190
antiquoteWithEnd :: Parser b -> Parser a -> Parser (Antiquoted v a)
194191
antiquoteWithEnd t expr = Antiquoted <$> (antiStart *> expr <* t)
195192
where
@@ -686,7 +683,7 @@ argExpr =
686683
pair <-
687684
liftA2 (,)
688685
identifier
689-
(optional $ question *> nixToplevelForm)
686+
(optional $ symbol "?" *> nixToplevelForm)
690687

691688
let args = acc <> [pair]
692689

0 commit comments

Comments
 (0)