Re: [GHC] #1384: Exporting a module that isn't imported doesn't fail

2007-05-27 Thread John Meacham
On Sun, May 27, 2007 at 10:49:41PM +0100, Ian Lynagh wrote: > On Sun, May 27, 2007 at 02:16:15PM -0700, John Meacham wrote: > > On Sun, May 27, 2007 at 08:28:25PM -, GHC wrote: > > > > > > Exporting a module that isn't imported doesn't fail. > &

Re: [GHC] #1384: Exporting a module that isn't imported doesn't fail

2007-05-27 Thread John Meacham
odule List ) where > }}} Actually, I don't think this is a bug, 'module Foo' in the export list is defined to export all names in scope which are of both in scope under the names 'Foo.bar' and 'bar' and both names refer to the same entity. There is no pa

Re: linker error message

2007-05-13 Thread John Meacham
ly the larger the program you are compiling is, so perhaps it has something to do with the rather large lag between the time ghc parses the files and actually uses the results of the parse to compile the .o file. which can easily be tens of minutes for a large project. This is just supposition though.

Re: main main main main main

2007-05-13 Thread John Meacham
implicitly module Main(main) where which is very nice for optimizing compilers. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: binary distribution problem

2007-05-09 Thread John Meacham
n of ghc works just fine on x86_64 if you modify it to just pass '-m32' to all the tools. it would be nice if the driver script checked uname -a and passed -m32 or -m64 as appropriate, so you can trivially compile both 32 bit and 64 binaries on the same system. by running '

Re: [GHC] #1246: <= operators get compiled worse than ==

2007-04-26 Thread John Meacham
On Mon, Mar 26, 2007 at 09:51:02PM -0700, Stefan O'Rear wrote: > On Mon, Mar 26, 2007 at 09:31:41PM -0700, John Meacham wrote: > > On Mon, Mar 26, 2007 at 09:23:13PM -0700, Stefan O'Rear wrote: > > > On Mon, Mar 26, 2007 at 09:15:35PM -0700, John Meacham wrote: > &

Re: [GHC] #1246: <= operators get compiled worse than ==

2007-03-26 Thread John Meacham
On Mon, Mar 26, 2007 at 09:23:13PM -0700, Stefan O'Rear wrote: > On Mon, Mar 26, 2007 at 09:15:35PM -0700, John Meacham wrote: > > actually, this is not true for the specific case of testing against zero > > on x86 at least. there is a 'zero flag' that is set

Re: [GHC] #1246: <= operators get compiled worse than ==

2007-03-26 Thread John Meacham
an operation is zero. whereas for compares, you actually need to load zero into a register and cmp against it. though, there could be other things going on with ghc of course. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs ma

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-13 Thread John Meacham
jhc calls it unsafeCoerce__ and it lives in Jhc.Prim. In general, I use the trailing __ to mean what abafthash does in ghc. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http

Re: weird data corruption

2006-08-24 Thread John Meacham
The other reason is principle of least surprise. stderr is pretty much always unbuffered by default (as in, ANSI c specifies it, and most (all?) languages with a concept of buffering follow suit) . I would find it quite odd for haskell to be different than unix norms. for multithreaded logging, I h

Re: stdin set to nonblocking mode

2005-08-12 Thread John Meacham
om then the next write or read call is guarenteed to not block, no matter what its size. (you just may get a short read or write) John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

stdin set to nonblocking mode

2005-08-10 Thread John Meacham
Why do we set file descriptors to nonblocking mode anyway if they are waited on by a select. there shouldn't be a need to use both mechanisms. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs mailing list Glasgow-haskell

bug

2002-11-20 Thread John Meacham
or http://sourceforge.net/projects/ghc/. it only happens when i try to compile with profiling enabled. -- ------- John Meacham - California Institute of Technology,

bug in ghc-5.00

2001-05-07 Thread John Meacham
hc/. make: *** [mfl.o] Error 1 -- ------ John Meacham http://www.ugcs.caltech.edu/~john/ California Institute of Technology, Alum. [EMAIL PROTECTED] -- import Char import Maybe(fromJust) data Code = Co