patch applied (testsuite): Track changes in fuzzy-matching in error messages

Max Bolingbroke batterseapower at hotmail.com
Fri Dec 24 15:26:35 CET 2010


If the match threshold at which candidates are reported is something
like (length of identifier) `div` 4 then the match threshold for
length-1 identifiers will be 0, so quite naturally no candidates will
be reported.

Cheers,
Max

On 24 December 2010 08:41, Simon Peyton-Jones <simonpj at microsoft.com> wrote:
> Yes, that might be a good heuristic.  What do others think?
>
> | -----Original Message-----
> | From: Simon Marlow [mailto:marlowsd at gmail.com]
> | Sent: 23 December 2010 11:55
> | To: Simon Peyton-Jones
> | Cc: cvs-ghc at haskell.org
> | Subject: Re: patch applied (testsuite): Track changes in fuzzy-matching in
> | error messages
> |
> | On 22/12/2010 17:55, Simon Peyton Jones wrote:
> | > Wed Dec 22 09:55:10 PST 2010  simonpj at microsoft.com
> | >    * Track changes in fuzzy-matching in error messages
> |
> | This is cool, but I think we could tweak the defaults a bit.  e.g.:
> |
> | arrowfail002.hs:6:17:
> |   Not in scope: `x'
> |   Perhaps you meant one of these: `f' (line 7), `g' (line 6)
> |
> | Maybe disable fuzzy matching for single-character identifiers?
> |
> | Cheers,
> |       Simon
>
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>



More information about the Cvs-ghc mailing list