parser icon indicating copy to clipboard operation
parser copied to clipboard

Incorrect problem propagated from finalizeFloat

Open chalup opened this issue 5 years ago • 0 comments

The problem passed to float handler for numbers parser is not used, instead the generic invalid problem is used. In other words these lines:

case floatSettings of
      Err x ->
        Bad True (fromState s invalid)

Should probably look like this:

case floatSettings of
      Err x ->
        Bad True (fromState s x) -- note the `x` instead of `invalid`

chalup avatar Dec 09 '19 19:12 chalup