Happy bug

2007-04-13 Thread Stefan O'Rear
[EMAIL PROTECTED]:~/cadt/src$ happy Parser.y happy: parE [EMAIL PROTECTED]:~/cadt/src$ A little code examination seems to show that this error cannot occur for correct grammars. But still - it's not helpful. I would prefer to see the actual first error rather than none of the errors. Parser.y i

GHC's error messages are too verbose?

2007-04-13 Thread Bryan O'Sullivan
I've long wondered why GHC issues such prolix error messages when it runs into a problem. Here's a representative example from some hacking I'm currently doing: src/Network/Hackage/CabalPackage/Setup.hs:68:5: Couldn't match expected type `(RpmFlags, [String])' against inferred t

diagnostics' identifier quoting style

2007-04-13 Thread Isaac Dupree
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here's a random message selected from building GHC: Warning: Defined but not used: `res_ty'' (the identifier is "res_ty{PRIME}", where {PRIME} is the ' mark) Note that quotes are left:` (grave accent) and right:' (ASCII single quote). Besides this be

Re: Buildng ghc-devel from macports

2007-04-13 Thread Gregory Wright
Hi Ian, On Apr 13, 2007, at 11:56 AM, Ian Lynagh wrote: On Fri, Apr 13, 2007 at 10:27:54AM -0400, Gregory Wright wrote: I can do this, but the previous procedure worked until a couple of weeks ago. Has something changed? Yes; autoreconf and configure no longer recurse into the librarie

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Malcolm Wallace
I wrote: > So, should I push my patch for building > System.Posix.Types with nhc98 (i.e. without autoconf, with hsc2hs)? OK, I have pushed a revised patch, which should not alter the behaviour for ghc at all. I moved the invocation of hsc2hs into the NHC.* hierarchy, and just re-export that modul

Re: Buildng ghc-devel from macports

2007-04-13 Thread Ian Lynagh
On Fri, Apr 13, 2007 at 10:27:54AM -0400, Gregory Wright wrote: > > I can do this, but the previous procedure worked until a couple of weeks > ago. Has something changed? Yes; autoreconf and configure no longer recurse into the libraries (as cabal was running configure too, so it was being run t

Re: Buildng ghc-devel from macports

2007-04-13 Thread Gregory Wright
Hi Ian, On Apr 13, 2007, at 9:19 AM, Ian Lynagh wrote: On Thu, Apr 12, 2007 at 11:07:03AM -0400, Gregory Wright wrote: configure: No cpphs found configure: No greencard found Setup: Unrecognised flags: --with-cc=gcc make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 make: *

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Neil Mitchell
Hi > Indeed, we intend to box everything. Plus there were compilers which > did unboxing before having unboxed types - as the paper said, it > wasn't as neat, but it was possible. Right, but the problem is that if you box all of GHC's unboxed types, you end up with an extra layer of boxing comp

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Simon Marlow
Neil Mitchell wrote: Hi How do you plan to implement unboxed types? AFAIK, implementing unboxed types requires a typed intermediate language. Maybe you could get away with boxing all the unboxed types, but then Int would have an extra level of boxing. Indeed, we intend to box everything.

Re: Buildng ghc-devel from macports

2007-04-13 Thread Ian Lynagh
On Thu, Apr 12, 2007 at 11:07:03AM -0400, Gregory Wright wrote: > > >configure: No cpphs found > >configure: No greencard found > >Setup: Unrecognised flags: > > --with-cc=gcc > >make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 > >make: *** [stage1] Error 2 > > it to me directl

Re: ANNOUNCE: GHC 6.6.1 Release Candidate

2007-04-13 Thread Ian Lynagh
On Thu, Apr 12, 2007 at 01:14:37PM +0200, Bjorn Bringert wrote: > On Apr 11, 2007, at 19:39 , Thorkil Naur wrote: > > >2. On my PPC Mac OS X 10.4, configure reports > > > >checking for DocBook XSL stylesheet directory... no > >configure: WARNING: cannot find DocBook XSL stylesheets, you will > >

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Neil Mitchell
Hi How do you plan to implement unboxed types? AFAIK, implementing unboxed types requires a typed intermediate language. Maybe you could get away with boxing all the unboxed types, but then Int would have an extra level of boxing. Indeed, we intend to box everything. Plus there were compiler

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Simon Marlow
Claus Reinke wrote: I'm confused. I thought we copied the configuration from the target to the host as part of the bootstrapping process, but now I can't see how this is supposed to happen for HsBaseConfig.h. It looks like following the instructions in the building guide will result in failu

Re: FreeBSD/amd64 registerised running

2007-04-13 Thread Simon Marlow
Neil Mitchell wrote: Hi I'm hoping that by the end of this summer, nhc98 will be able to compile the whole of ghc. :-) Also, and alternatively, the yhc chaps have mooted the idea of moving from nhc98's front end to ghc's, which might eventually give you a fully portable bytecode route to boot