patch applied (testsuite): Track changes in fuzzy-matching in error messages
Simon Peyton-Jones
simonpj at microsoft.com
Mon Jan 10 12:12:13 CET 2011
Right. I've pushed a patch that doesn't make suggestions for single-character names.
Simon
| -----Original Message-----
| From: omega.theta at gmail.com [mailto:omega.theta at gmail.com] On Behalf Of Max
| Bolingbroke
| Sent: 24 December 2010 14:27
| To: Simon Peyton-Jones
| Cc: Simon Marlow; cvs-ghc at haskell.org
| Subject: Re: patch applied (testsuite): Track changes in fuzzy-matching in
| error messages
|
| 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