[I am reading ghc-bugs via the list archives, Cc'ing me would make me
see responses faster]
Here's a simple memoization function:
applyMemo :: (Eq a1,Show a1) = (a1 - b) - MVar [(a1,b)] - (a1 - b)
applyMemo f refTable x1 = unsafePerformIO $ do
-- print x1
table - takeMVar refTable
* Simon Marlow [EMAIL PROTECTED] [2003-03-21T13:02+]:
GCC has __umoddi3 in libgcc.a. It generates calls to that function and
others for some 64-bit operations. On our RedHat box here, __umoddi3 is
also exported by libc.so, which is why we don't get any link errors.
Perhaps on your box it
* Malcolm Wallace [EMAIL PROTECTED] [2003-03-19T14:33+]:
Anyway, I changed mk/config.h to add
#define HAVE_ALTZONE
#define HAVE_TIMEZONE
and received the same error. I will now `make clean' and rebuild from scratch,
to see if it makes any difference.
You may have to copy (and
- Forwarded message from Richard Braakman [EMAIL PROTECTED] -
Date: Tue, 03 Dec 2002 03:26:54 +0200
From: Richard Braakman [EMAIL PROTECTED]
Subject: Bug#171518: ghc --make does not play nice with FFI wrapper
To: Debian Bug Tracking System [EMAIL PROTECTED]
Reply-To: Richard Braakman
* Wolfgang Thaller [EMAIL PROTECTED] [2002-10-09T00:42+0200]:
When building the library archive libHSbase.a, the makefile system
includes not only all the split object files, but also the file
PrimopWrappers.o. Consequently [at least on Mac OS X], ranlib generates
a warning about duplicate
* Simon Marlow [EMAIL PROTECTED] [2002-07-22T14:46+0100]:
http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/hslibs/posix
/doc/posix.sgml?rev=1.14content-type=text/x-cvsweb-markup
it has
See XRef LinkEnd=sec-Concurrent-Haskell for details on how to
communicate between
On Thu, Sep 27, 2001 at 10:29:04 +0100, Simon Marlow wrote:
A :l X -- trying non-existing module
can't find module `X' -- all right
Prelude :m A
`A' is not currently loaded -- ?
Prelude
The ':load' command begins by unloading all of the
On Wed, Sep 26, 2001 at 16:21:09 +0200, Koen Claessen wrote:
I discovered a bug in the Time module. If I run the
following code snippet:
Just one? ;)
[...]
The TimeDiff value has a tdSec field greater than 59, and a
tdMin field of 0. I guess this is a bug.
I am running ghc-5.00.2 on
On Mon, Sep 24, 2001 at 11:00:49 +0200, Ch. A. Herrmann wrote:
Dear Haskellers,
in ghc-5.02/distrib/INSTALL, there is the following hint:
Linux users: GHCi-5.00 needs libreadline.so.3.
hrm... then what did I do wrong? :)
[209]% ldd /usr/lib/ghc-5.00.2/ghc-5.00.2
libdl.so.2 =
On Tue, Jun 26, 2001 at 15:02:28 +0200, Michael Sperber [Mr. Preprocessor] wrote:
Salve glorious Glasgow Haskell teamsters!
The ghc release notes keep announcing that the ghc distro is available
via anonymous ftp, referring to details below. However, there never
seem to be any details,
* William Chesters [EMAIL PROTECTED] [2001-05-09T20:58+0200]:
William Chesters writes:
However the toy exe I build terminates with an Illegal
instruction signal (whether or not I use -via-C), and the same quite
quickly happens to ghci if I play around. If I copy the toy exe onto
On Mon, Apr 30, 2001 at 12:19:32 +0100, Simon Marlow wrote:
So, I think a safe solution is to ensure that the .ghci file belongs
to the user. Checking for decent permissions would increase security,
but well, IMO it's the users' fault, if he creates a 777 .ghci :-P
I've thought about
* BENNETT,ANDY (HP-Unitedkingdom,ex1) [EMAIL PROTECTED] [2001-04-27T15:10+0100]:
While I agree that there is a potential security hole, I think it is
something that you could possibly tackle with the OS security mechanisms. I
don't know much about Windows, or other Unix platforms, but if they
Please, preserve the Cc: when replying.
- Forwarded message from Michal Politowski [EMAIL PROTECTED] -
Date: Sat, 21 Apr 2001 18:57:01 +0200
From: Michal Politowski [EMAIL PROTECTED]
Subject: Bug#94739: ./.ghci -- isn't it dangerous?
To: Debian Bug Tracking System [EMAIL PROTECTED]
On Thu, Apr 19, 2001 at 20:49:25 -0600, Alastair Reid wrote:
PPUnits.hs: can't find one of the following: `is.hi' `is.hs' `is.lhs'
Obviously, the dependency generating code is being confused by the
function name "import'". I'd go fix the relevant regexp myself except
that I can't figure
On Tue, Apr 17, 2001 at 21:20:04 +0200, Markus Lauer wrote:
Hi,
I compiled ghc-5.00 from the source distribution
(config --prefix=.; make; make install).
when I call ghci I get
ghc-5.00: not built for interactive use
Is there anything special to enable GHCi?
You have to
* "Manuel M. T. Chakravarty" [EMAIL PROTECTED] [2001-04-16T14:21+1000]:
which automates the process. More details at
http://haskell.cs.yale.edu/ghc/docs/4.08.2/building/sec-booting-from-c.html
I just found that this documentation seems to have disappeared
since the 5.00 release. I
On Thu, Mar 01, 2001 at 18:00:36 +0100, Frank Steiner wrote:
Hi,
Hi Frank,
I need to install a recent ghc version on a Sparc running
Solaris. I cannot use the precompiled binaries as I don't
have access to /usr/local and it seems that this path is
hard-compiled into the binaries.
hmm,
[ Volker, is your Mail-Followup-To:-header intended like this? ]
* Volker Stolz [EMAIL PROTECTED] [2001-01-26T14:57+0100]:
[ configure thinks: happy-1.10 happy-1.9 ]
And in a sense, it is right. I'd really like to come up with a fix, but
I guess...
[ perl thingy ]
perl vers.pl "1.9"
* John Hughes [EMAIL PROTECTED] [2001-01-22T20:10+0100]:
liam@HEMPC ~/BDDs
$ ghc -static -c -fglasgow-exts Pigeon.hs
[...]
basicTypes/Var.lhs:194: Non-exhaustive patterns in function
readMutTyVar
This is a nice one. If you change it in a sublte way:
+++ Pigeon.hi
pigeon n t =
* Simon Marlow [EMAIL PROTECTED] [2001-01-16T02:17-0800]:
[...] The Solaris man page has this exact same paragraph,
although I can find no mention of this behaviour in the POSIX book I
have, the Linux man pages (surprise :-) or the Glibc docs.
Well, yes the man pages *ummh* sort of suck, but
* Michael Weber [EMAIL PROTECTED] [2001-01-16T00:00+0100]:
[...]
So, a solution seems to be, to block SIGTTOU during the call of
tcsetattr
[...]
BTW: Eventually, the following functions need the same shielding:
tcsetattr, tcsendbreak, tcflow, tcflush
Cheers,
M/
--
() ASCII ribbon
On Mon, Oct 16, 2000 at 09:09:08 +0100, Martin Böhme wrote:
Dear GHC team,
While testing Martin Erwig's functional graph library, I encountered
what I believe is a bug in GHC. My test program crashes with a
segmentation fault for graphs above a certain size.
*hmm* I just tested the
[CC field left intact, despite nonexistant Mail-Followup-To]
On Tue, Oct 03, 2000 at 13:52:38 +, Steinitz, Dominic J wrote:
Pointer.lhs:103:
Couldn't match `AddrOff' against `Int'
Expected type: AddrOff
Inferred type: Int
In the application `toInt i'
In the
Linux/x86 system with the binary
package ghc4-4.08.0-1 from Michael Weber [EMAIL PROTECTED].
... which is not surprising, because I checked it out with
``-rghc-4-07-branch'' :-)
Cheers,
Michael
--
() ASCII ribbon campaign | Chair for Computer Science II | GPG: F65C68CD
/\ against HTML mail
On Sun, Jul 16, 2000 at 16:49:35 -0700, Martin Pokorny wrote:
Hi all,
I'm a beginner to functional programming and Haskell, so please bear
with me. I am working on some numerical programming routines, and I
ran into a small problem trying to compile a module of mine. I'm using
ghc version
Hi all!
I took a look (or maybe some more) at the well-known, totally buggy
Time module...
I think, I sorted out the main problems and fixed them:
* toClockTime couldn't deal properly with anything but local
TZ-encoded CalendarTime's (i.e. not with UTC-encoded CT's for
example)
*
`make', didn't you?
Cheers,
Michael
--
Lehrstuhl-Kinderkrippe Michael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW: http://www-i2.informatik.rwth-aachen.de/Software/Haskell/
Will ghc change interface format with each version?
This is the biggest problem (and, interestingly, the least addressed :-)).
Especially for binary distribution builders, it's quite inconvenient to
rebuild every GHC-library on the system to match with the latest compiler
version :-(
I thought
^ ?
BTW: not giving _any_ optimization options is equivalent to -Onot, IIRC.
Cheers,
Michael
--
Lehrstuhl-BeleuchtungMichael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW: http://www-i2.informatik.rwth-aachen.de/Software/Haskell/
converted to DocBook, but at least one argument remains:
You have to use a stylesheet-capable browser to view the html pages...
bye-bye lynx, w3m... :-(
Just my $0.02EUR
Cheers
Michael
--
Lehrstuhl-Beleuchtung Michael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW:
consequence that the variables are overridden with the lines listed
above...
Is this true, or did I miss an important step?
Cheers,
Michael
--
Lehrstuhl-BeleuchtungMichael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW: http://www-i2.informatik.rwth-aachen.de/Software/Haskell/
On Tue, Jan 18, 2000 at 03:49:35 -0800, Simon Marlow wrote:
BIN_DIST=1
in your build.mk file in order to build a binary distribution. I bet that's
the problem.
In fact, that fixed the problem...
thanks cheers,
Michael
--
Lehrstuhl-BeleuchtungMichael Weber [EMAIL PROTECTED
Hi!
I had to apply some patches to make today's GHC build, they're attached.
The patch to ghc/mk/paths.mk is necessary, because the ordering of variables
is important when using "simply expanded variables", i.e. the `:=' ones (I'm
using make-3.78.1).
BTW: Might I still suggest to change this
On Fri, Jan 07, 2000 at 09:44:09 +0100, Michael Weber wrote:
Unfortunately, this neithers explains Sven's problem nor mine, since
unpackCStringIO needn't be present to show the error.
It seems, today's GHC made the problem disappear (or, at least, it
disappeared between 1999/12/06 and 2000/01
On Sun, Jan 09, 2000 at 15:24:03 +, Ian Jackson wrote:
* `foreign' seems to have become a keyword ! My program uses it as a
variable/function name and I had to rename it to avoid a parse error.
I couldn't find anything about it in my documentation.
IIRC, it is only, iff option
'
-- ^ ^
in (mrt, g', cbs', nfs')
\end{code}
See the cycle? Removing the guard does the trick (BTW: I tested with 19991206).
Cheers,
Michael
--
Lehrstuhl-Gärtnerei Michael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW
GETFL]");
}
return -1;
}
int
main ()
{
block_fd (fileno (stdin));
block_fd (fileno (stdout));
block_fd (fileno (stdin));
}
--
Lehrstuhl-Gärtnerei Michael Weber [EMAIL PROTECTED]
Lehrstuhl für Informatik II
RWTH Aachen
WWW: http://www-i2.infor
!fptools/nofib !fptools/green-card !fptools/literate
!fptools/hdirect !fptools/common-rts !fptools/CONTRIB fptools
Is this a problem with my cvs client or with the repo?
Cheers,
Michael
--
Lehrstuhl-Gärtnerei Michael Weber [EMAIL PROTECTED
On Thu, Sep 30, 1999 at 19:16:48 +0100, Alex Ferguson wrote:
My next worry is that when I try to build ghc from source on an Alpha,
I'll get bitten on the bum by the ghc-needs-Happy-needs-(recent)-ghc
syndrome, or otherwise spend mucho time wrestling with the Happy
build setup to get round
On Fri, Oct 01, 1999 at 02:10:16 +0100, Alex Ferguson wrote:
In order to install ghc-4.04, I need to install the binary v. of 2.10
(this should be OK for doing that, right?)
Last time I checked (some months ago), GHC 4.x wasn't in a shape that it
could be build at all on Alpha architecture! I
On Wed, Sep 22, 1999 at 00:36:27 +0200, Hannah Schroeter wrote:
On Tue, Sep 14, 1999 at 12:43:11AM -0700, Simon Peyton-Jones wrote:
{-# notInline test #-}
test :: IORef [a]
test = unsafePerformIO $ newIORef []
main = do
writeIORef test [42]
bang - readIORef test
Hi!
The latest CVS GHC doesn't compile with older 4.04 versions (George Russell
already reported this, IIRC). The reason are the following files:
ghc/compiler/basicTypes/Const.lhs
ghc/compiler/coreSyn/CoreUnfold.lhs
ghc/compiler/deSugar/DsForeign.lhs
ghc/compiler/nativeGen/StixInfo.lhs
On Wed, Aug 25, 1999 at 11:04:27 +0200, George Russell wrote:
I am trying to get GHC, with the latest PrimOps.h fix, to compile with gcc 2.95 on
Sparc
Solaris. I now have an hsc but it doesn't get very far with compiling the standard
library
because when it gets to PrelEnum.lhs, it
On Sat, Aug 21, 1999 at 11:59:25 +, Marcin 'Qrczak' Kowalczyk wrote:
import FiniteMap
main = print . fmToList . listToFM $ [(i,0) | i - [1..3]]
This program simply segfaults. With less than 2 elements it works.
With ghc-4.02 it works.
*hmm* this works with ghc-4.04 of
On Mon, Aug 16, 1999 at 16:40:30 -0500, Michael Hobbs wrote:
Is this a bug with ghc-4.04 or just a "feature" of Haskell 98 that I was
unaware of? I get a parse error with the following code:
data Point = Pt {pointx, pointy :: Float}
abs (Pt {pointx, pointy}) = sqrt (pointx*pointx +
On Tue, Aug 03, 1999 at 01:49:36 -0700, Simon Marlow wrote:
Yesterday's sources were fully broken due to a bogus commit made by me.
Things should be ok now.
Bad luck to me :-(
However, I just wanted to give some feedback that now it's working again
(1999/08/03) on Linux (packages downloadable
Hi!
I tried to recompile the latest ghc (1999/07/31) on a Linux/glibc2.1.1
system (egcs 2.91.66), but there seems to be a problem: the build works, but
the resulting compiler produces executables, that throw core, even with
"main = return ()".
I have a CVS version from 1999/07/10, and this one
On Mon, Aug 02, 1999 at 12:54:23 +0100, Marc van Dongen wrote:
[...]
I've noticed that as well. Code like
does not produce proper error messages anymore which it did with
ghc-4.02. One wonders where the performance boost came from:-)
$ cat tmp.lhs
module Main( main ) where
main =
Hi!
I attached a patch that does some additional cleanups to a build tree
(equiv.: makes the packager's life easier ;-))
I wasn't sure, which files should go into $(CLEAN_FILES) and which into
$(MAINTAINER_CLEAN_FILES), maybe someone could have a look at my choice.
regarding the perl scripts:
Hi!
now, this is interesting:
\begin{code}
data Foo label = Const
main = print 1
\end{code}
"ghc-4.04 -c test.hs" works, but "ghc-4.04 -fglasgow-exts -c test.hs" yields:
Foo label
test.hs:2: Illegal data/newtype declaration
Compilation had errors
Instead of 'label', using 'unsafe',
On Fri, Jul 02, 1999 at 01:59:25 -0700, Simon Marlow wrote:
rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase;
else find PrelBase -name '*.o' -print | xargs rm -f __rm_food
; fi ;
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C
-Rghc-timing -O -split-objs
Hi!
consider this piece of code:
\begin{code}
class Dumb a where
foo, death, something :: a
instance Dumb Int where
foo = 1
death =
something = 1
\end{code}
yields 'Internal Happy error' with CVS from 1999/06/30 and happy-1.5 (sorry,
I didn't
Hi!
does it any harm to include the appended patch?
Otherwise, StgRun.p_o and callfun.p_o won't get cleaned out...
I did a successful build with this patch, so it doesn't seem to break
things...
Cheers,
Michael
--- ghc/rts/Makefile.orig Tue Jun 29 08:40:32 1999
+++ ghc/rts/MakefileTue
On Wed, Jun 16, 1999 at 15:57:00 -0400, Kirstin S. Reese wrote:
when building ghc on an smp machine, gmake arguments of -j ?? are
overridden by -rj 1, in an unneccesary fashion. However, I cannot find
where this is defined for MFLAGS.
Any one know about this?
Hi!
Actually, this is
On Thu, Jun 24, 1999 at 16:55:29 +0200, Michael Weber wrote:
When I set too big heapsize values...
[blah removed]
Sorry for that, guys, -optCrts-M seems to be the switch of choice...
my apologies,
Michael
--
No sig is good sig...
Hi!
This tiny patch to aclocal.m4 lets "./configure" reject happy versions below
1.4. They won't work with ghc, anyway... :-)
Cheers,
Michael
--- aclocal.m4.orig Thu Jun 24 15:36:06 1999
+++ aclocal.m4 Thu Jun 24 15:37:22 1999
@@ -147,9 +147,10 @@
else
fptools_cv_happy_version="";
Hi!
When I set too big heapsize values with option '-H', hsc complains about
something like "-Hsize bigger than -Msize". Since ghc won't compile (*)
with lower -H values (yes, -dcore-lint also applied), I added "-Msize" to
the command line... AND: it doesn't work!
(*) this happened when
Hi!
Maybe someone wants to document that the CVS ghc from the last few days
(since yacc-happy parser shift?) does not work with happy-1.4. Nevertheless
it works with happy-1.5.
The offending part (although IMHO Printf.lhs is *NOT* the problem!):
Hi!
Yes, I know, the following code snippets are wrong, because instances are
always imported. The compiler yields an error message, like it should:
Foo1.lhs:2:
Duplicate or overlapping instance declarations
for `Read FooData'
Name.lhs:382: Non-exhaustive patterns in function
Hi!
The following code produces:
MTest.lhs:2:10: parse error on input: ")"
although this should be perfectly ok... consider a module that just imports
instance declarations...
Cheers,
Michael
\begin{code}
module M() where
instance Show ...
\end{code}
--
XXXVII:
Ninety
Hi!
when compiling with Readline support, the compiler (today's CVS) exits,
because the posix library is build too late...
The appended patch cures this (this is BTW mentioned in the Makefile :-)).
Also, there are two obsolete files, which prevent ghc from being build with
Readline support.
Hi!
When compiling on a site which has more than one gcc installed, this might
help:
--- aclocal.m4.orig Mon Jun 7 11:32:23 1999
+++ aclocal.m4 Mon Jun 7 11:33:04 1999
@@ -291,7 +291,7 @@
[AC_CACHE_CHECK([how to invoke GNU cpp directly], fptools_cv_gnu_cpp,
[if test "$HaveGcc" =
Hi!
ghc-4.02 seems to be picky about trailing spaces, i.e.
{-# OPTIONS -fglasgow-exts #-}|- EoLn
is ok, but
{-# OPTIONS -fglasgow-exts #-} |- EoLn
is not recognized... I don't think, that's a good idea...
Cheers,
Michael
--
XXXVII:
Ninety percent of the time things will turn out
Hi!
Consider the following program:
data Msg = Value Int | Inc
deriving (Show, Read)
main = do let v = read "Value 7"::Msg
print v
When compiled with ghc-4.02, everything's fine, it outputs "Value 7" as
expected. But compiled with ghc-pre-4.03 it yields this
On Wed, May 19, 1999 at 08:21:27 -0700, Simon Marlow wrote:
[MYSELF wrote]:
Nevertheless, ghc/driver/ghc BUS ERRORs... :-(
Configuration:
Solaris 2.7
gcc 2.8.1
ghc 4.01 pl 0 (binary version)
ghc-4.02-src.tar.gz
BTW: I also made this uahalf/uaword-change change in the
Hi!
The Readline.hi file is missing in the i386-linux-glibc binary distribution
of ghc-4.02pl0.
I took the source distrib., configure'ed it, linked ghc-4.02 of the binary
distribution to fptools/ghc/drivers/ghc (unfortunately I was not able to
fully compile ghc-4.02, it swapped to death, but
On Fri, Nov 05, 1999 at 15:59:29 +0100, George Russell wrote:
Long.hs looks fairly simple to me. However when compiled with
ghc -O2, I get a segmentation fault:
ghc Long.hs -o long -O2
./long
Segmentation Fault
works, regardless of '', '-O', '-O2'...
ABC.hs is a little more
68 matches
Mail list logo