RE: improving error messages

2006-10-30 Thread Simon Peyton-Jones
| as you may remember, in GHC survey awkward error messages was named as
| one of most serious GHC drawbacks. i propose to start collecting
| examples of bad error messages together with what we want to see in
| these cases. as first contribution, i've added this text as
| http://hackage.haskell.org/trac/ghc/ticket/956

Thank you!  It'll be very useful to have such a collection.  

Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Simon Peyton-Jones
| There was some discussion on the haskell' list about bring back
| record puns, which were once in ghc.
| 
| Record punning would have been very helpful on one of my recent
| projects, where I had some large arrays of statically initialized
| records.
| The longFieldSelectorNamesToAvoidNamespaceClashes are just
| noise is such a case.

I always thought it was a mistake to remove record puns in H98.  I would
not be against re-introducing them into GHC, since they appear to remain
in Hugs and are in Yhc.

Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: OpenGL failing with Mac Intel 6.6 distribution

2006-10-30 Thread Deborah Goldsmith

On Oct 30, 2006, at 8:47 AM, Deborah Goldsmith wrote:
Since the files are not in the distribution itself, they can hardly  
be installed. :-) It looks like the Mac OS X Intel distribution has  
a problem. I'll check the PPC distribution later to see if it has  
the same problem.


I checked and the Mac OS X PowerPC binary distribution does not have  
this problem; only Mac OS X Intel.


Deborah

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Bad control characters in GHCi 6.6 (Mac OS X PPC)

2006-10-30 Thread Deborah Goldsmith


On Oct 23, 2006, at 8:59 AM, Björn Buckwalter wrote:


On 10/19/06, Simon Marlow [EMAIL PROTECTED] wrote:

See this page that I just created:

http://hackage.haskell.org/trac/ghc/wiki/Building/MacOSX


I tried these instructions, first by using my existing (darwinports)
readline in /opt/local, and when that failed by first installing
readline in /usr/local per the instructions. Neither fixed the
problem. I don't know why but perhaps I failed to remove the traces of
my initial install completely. In the end I gave up and installed Greg
Heartsfield's binary package which remedied my problems (thanks
Greg!).


I think I have this partially figured out.

When I install version 5.1 of readline, rl_readline_version is  
defined as follows in readline/readline.h:



/*  */
/*  */
/*  Well Published Variables*/
/*  */
/*  */

/* The version of this incarnation of the readline library. */
extern const char *rl_library_version;  /* e.g., 4.2 */
extern int rl_readline_version; /* e.g., 0x0402 */



However, in ghc-6.6, libraries/readline/configure has the following:


cat conftest.$ac_ext _ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern C
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char rl_readline_version ();
int
main ()
{
rl_readline_version ();
  ;
  return 0;
}
_ACEOF



which is looking for rl_readline_version as a *function*. This fails  
(at the link stage on Darwin/Intel), even though GNU readline is  
installed, because the symbol type is wrong. The configure script  
concludes that libedit is being used, even though it's using GNU  
Readline v5.1.


Was rl_readline_version a function in earlier versions of GNU Readline?

Deborah

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread John Meacham
On Mon, Oct 30, 2006 at 12:11:23PM -, Simon Peyton-Jones wrote:
 I always thought it was a mistake to remove record puns in H98.  I would
 not be against re-introducing them into GHC, since they appear to remain
 in Hugs and are in Yhc.

yes. jhc has them too and I wish ghc did.

puns like Foo { .. } would be great too.

I made this page on the wiki to record fixes to the record system:

http://haskell.galois.com/cgi-bin/haskell-prime/trac.cgi/wiki/ExistingRecords

most would be pretty straightforward to implement.

John

-- 
John Meacham - ⑆repetae.net⑆john⑈
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Seth Kurtzberg
On Mon, 30 Oct 2006 16:30:42 -0800
John Meacham [EMAIL PROTECTED] wrote:

 On Mon, Oct 30, 2006 at 12:11:23PM -, Simon Peyton-Jones wrote:
  I always thought it was a mistake to remove record puns in H98.  I would
  not be against re-introducing them into GHC, since they appear to remain
  in Hugs and are in Yhc.
 
 yes. jhc has them too and I wish ghc did.
 
 puns like Foo { .. } would be great too.

I'd vote for enabling them with a command line switch, rather than by default, 
as they can be confusing to folks learning the language.

Seth

 
 I made this page on the wiki to record fixes to the record system:
 
 http://haskell.galois.com/cgi-bin/haskell-prime/trac.cgi/wiki/ExistingRecords
 
 most would be pretty straightforward to implement.
 
 John
 
 -- 
 John Meacham - ⑆repetae.net⑆john⑈
 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
 
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Neil Mitchell

Hi


 puns like Foo { .. } would be great too.

I'd vote for enabling them with a command line switch, rather than by default, 
as they can be confusing to folks learning the language.


How discussions come full circle :) I started this discussion on the
Hugs users list because I want to _remove_ the command line switch for
puns from Yhc. I'm not overly fussed whether I remove the entire
feature, or just remove the command line and make it always on by
default, but I do want the command line switch gone!

Interestingly now there seems to be a sudden body of people coming out
the woodwork who want this feature - so perhaps this should be sorted
for Haskell'.

Thanks

Neil
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users