[Haskell-cafe] corner case in Text.JSON 0.4.3
Daniel Fischer
daniel.is.fischer at web.de
Wed May 12 16:24:28 EDT 2010
On Wednesday 12 May 2010 21:53:41, Martin Hilbig wrote:
> hi,
>
> since i got no answer from the maintainer, maybe someone else can take
> care of it, or at least point out, what i did wrong.
>
> so, i recently stumbled upon some error while using Text.JSON 0.4.3 [1]:
>
> Text/JSON/String.hs:(127,4)-(137,49): Non-exhaustive patterns in case
>
> indeed ghc warned:
>
> [5 of 7] Compiling Text.JSON.String ( Text/JSON/String.hs,
> dist/build/Text/JSON/String.o )
>
> Text/JSON/String.hs:127:4:
> Warning: Pattern match(es) are non-exhaustive
> In a case alternative: Patterns not matched: []
>
> from looking at the code i couldn't see how this would ever happen, but
readJSString will die a horrible death if the closing quote is missing.
Your input misses the closing quote, so...
More information about the Haskell-Cafe
mailing list