Skip to content

Commit

Permalink
Parse rule for big integers is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Brady committed Feb 20, 2012
1 parent 0607514 commit 76ac83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ New in 0.9.2:
User visible changes: User visible changes:


* case expressions allowed in type signatures * case expressions allowed in type signatures
* Library extensions in prelude.vect and prelude.algebra


Internal changes: Internal changes:


Expand Down
2 changes: 1 addition & 1 deletion src/Idris/Parser.hs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ pConstant = do reserved "Integer";return BIType
<|> do reserved "String"; return StrType <|> do reserved "String"; return StrType
<|> do reserved "Ptr"; return PtrType <|> do reserved "Ptr"; return PtrType
<|> try (do f <- float; return $ Fl f) <|> try (do f <- float; return $ Fl f)
<|> try (do i <- natural; lchar 'L'; return $ BI i) -- <|> try (do i <- natural; lchar 'L'; return $ BI i)
<|> try (do i <- natural; return $ I (fromInteger i)) <|> try (do i <- natural; return $ I (fromInteger i))
<|> try (do s <- strlit; return $ Str s) <|> try (do s <- strlit; return $ Str s)
<|> try (do c <- chlit; return $ Ch c) <|> try (do c <- chlit; return $ Ch c)
Expand Down

0 comments on commit 76ac83b

Please sign in to comment.