diff --git a/src/MiniJuvix/Syntax/Concrete/Lexer.hs b/src/MiniJuvix/Syntax/Concrete/Lexer.hs index d92812d5a..395841325 100644 --- a/src/MiniJuvix/Syntax/Concrete/Lexer.hs +++ b/src/MiniJuvix/Syntax/Concrete/Lexer.hs @@ -86,7 +86,6 @@ bareIdentifier = interval $ do isAlphaNum c || validFirstChar c validFirstChar :: Char -> Bool validFirstChar c = - c /= '-' && or [ isLetter c, cat == MathSymbol, diff --git a/src/MiniJuvix/Syntax/Concrete/Parser.hs b/src/MiniJuvix/Syntax/Concrete/Parser.hs index 25e252114..39eaaf96d 100644 --- a/src/MiniJuvix/Syntax/Concrete/Parser.hs +++ b/src/MiniJuvix/Syntax/Concrete/Parser.hs @@ -123,7 +123,7 @@ import_ = do expressionAtom :: MonadParsec e Text m => m (ExpressionAtom 'Parsed) expressionAtom = do - AtomLiteral <$> literal + AtomLiteral <$> P.try literal <|> AtomIdentifier <$> name <|> (AtomUniverse <$> universe) <|> (AtomLambda <$> lambda)