Re: quoting in error messages
Simon Marlow <[EMAIL PROTECTED]> wrote: > > >`thing' > > >"thing" > > We should be using Unicode left/right single quotes if the locale > supports it (U+2018, U+2019). Better still, use a different color for > quoted code fragments if the terminal supports it. You could make the highlighting style a configurable item (in ghci). Let the user choose whether they want bold, underlined, pink, flashing, some form of quoting (or all of the above :-). For ordinary ghc, you could still take the preference from the .ghci configuration, or default to some anodyne choice that is supported everywhere. But please, the `' pair is not only ugly, but confusing when the expression itself can contain either or both of those characters, so almost any other choice would be better. > Double quotes would be slightly preferable to the existing grotesque > use of the grave accent as a left quotation mark, I suppose (but > would break a *lot* of tests :-). If it is configurable, you could set the quotes back to `' just for the purposes of the test harness. Regards, Malcolm ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: quoting in error messages
Henrik Nilsson wrote: > What do others think? It'd be dead easy to replace >`thing' > by >"thing" > in GHC's error messages, if that's what a majority want. Double quotes looks preferable to me. All the best, We should be using Unicode left/right single quotes if the locale supports it (U+2018, U+2019). Better still, use a different color for quoted code fragments if the terminal supports it. Double quotes would be slightly preferable to the existing grotesque use of the grave accent as a left quotation mark, I suppose (but would break a *lot* of tests :-). Cheers, Simon ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: quoting in error messages
> What do others think? It'd be dead easy to replace >`thing' > by >"thing" > in GHC's error messages, if that's what a majority want. Double quotes looks preferable to me. All the best, /Henrik -- Henrik Nilsson School of Computer Science and Information Technology The University of Nottingham [EMAIL PROTECTED] This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
RE: quoting in error messages
On Fri, 2006-04-07 at 16:23 +0100, Simon Peyton-Jones wrote: > What do others think? It'd be dead easy to replace > `thing' > by > "thing" > in GHC's error messages, if that's what a majority want. I'd agree with Frederik. Most errors do not involve string constants and `foo' is rather awkward unless run through latex. Axel. > Simon > > | -Original Message- > | From: [EMAIL PROTECTED] > [mailto:glasgow-haskell-bugs- > | [EMAIL PROTECTED] On Behalf Of Frederik Eaton > | Sent: 07 April 2006 13:40 > | To: glasgow-haskell-bugs@haskell.org > | Subject: quoting in error messages > | > | Hi, > | > | This is quite a minor issue but I just wanted to point out that it > | would be a little easier on the eye to use double quotes rather than > | paired single quotes in error messages e.g.: > | > | Couldn't match the rigid variable `d'' against `Bar a' > | `d'' is bound by the polymorphic type `forall d d'. > | (Data d, Data d') => > | t d d' -> t d d'' > | > | Thanks, > | > | Frederik > ___ > Glasgow-haskell-bugs mailing list > Glasgow-haskell-bugs@haskell.org > http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
RE: quoting in error messages
What do others think? It'd be dead easy to replace `thing' by "thing" in GHC's error messages, if that's what a majority want. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-bugs- | [EMAIL PROTECTED] On Behalf Of Frederik Eaton | Sent: 07 April 2006 13:40 | To: glasgow-haskell-bugs@haskell.org | Subject: quoting in error messages | | Hi, | | This is quite a minor issue but I just wanted to point out that it | would be a little easier on the eye to use double quotes rather than | paired single quotes in error messages e.g.: | | Couldn't match the rigid variable `d'' against `Bar a' | `d'' is bound by the polymorphic type `forall d d'. | (Data d, Data d') => | t d d' -> t d d'' | | Thanks, | | Frederik ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs