Skip to content

Commit

Permalink
Merge pull request #358 from data61/json-exponent
Browse files Browse the repository at this point in the history
Exponential notation is optional in JSON parser
  • Loading branch information
gwils authored Jul 24, 2019
2 parents 2967d02 + 06d460e commit 221327b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Course/JsonParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ jsonString =
--
-- /Tip:/ Use @readFloats@.
--
-- /Optional:/ As an extra challenge, you may wish to support exponential notation
-- as defined on http://json.org/
-- This is not required.
--
-- >>> parse jsonNumber "234"
-- Result >< 234 % 1
--
Expand Down

0 comments on commit 221327b

Please sign in to comment.