RE: deriving over renamed types

2002-04-04 Thread Simon Peyton-Jones
It's a bug in GHC 5.02 and earlier; fixed in 5.03 Simon | -Original Message- | From: Hal Daume III [mailto:[EMAIL PROTECTED]] | Sent: 04 April 2002 00:15 | To: Haskell Mailing List | Subject: deriving over renamed types | | | Why can't I do this: | | import FiniteMap | type FM =

Final cfp: WRS'02 - 2nd WS on Reduction Strategies, deadline: April 15

2002-04-04 Thread Bernhard Gramlich
[Apologies for multiple copies of this announcement] ** final call for papers and participation *** **

Re: deriving over renamed types

2002-04-04 Thread C T McBride
Hi all, At 2002-04-03 15:14, Hal Daume III wrote: type FM = FiniteMap type FM a b = FiniteMap a b I wasn't aware there was (supposed to be) a difference between these two declarations? Is there? On Wed, 3 Apr 2002, Ashley Yakeley wrote: type FM a b = FiniteMap a b ...This

RE: deriving over renamed types

2002-04-04 Thread Simon Peyton-Jones
| ...which would be very useful, but would probably have unpleasant | consequences for type inference... | | To my mind, this is not a credible objection. The horse has | already bolted; there's no point in trying to shut the stable | door. The existing post-Hindley-Milner aspects of

Re: Double - non-double function :)

2002-04-04 Thread Dylan Thurston
On Wed, Apr 03, 2002 at 11:15:04AM -0800, Hal Daume III wrote: I'm looking for a (not-necessarily Haskell 98 compliant, as long as it works in GHC) way to get at the internal representation of Doubles. I can use decodeDouble# to get at it, but I need something equivalent to encodeDouble# to

explicitly quantified classes in functions

2002-04-04 Thread Hal Daume III
Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03) complains about unifying q with Double. I *can* write: class

Re: explicitly quantified classes in functions

2002-04-04 Thread Wolfgang Jeltsch
On Thursday, April 4, 2002, 22:36 CET Hal Daume III wrote: Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc

Re: explicitly quantified classes in functions

2002-04-04 Thread John Hughes
Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03)

Re: explicitly quantified classes in functions

2002-04-04 Thread Hal Daume III
class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03) complains about unifying q with Double. Well, of course! The

functional programming contest

2002-04-04 Thread Andre W B Furtado
I was visiting http://www.ai.mit.edu/extra/icfp-contest/ and noticed that there was a functional programming contest in ICFP 98. I'd like to know if there are any periodic functional progamming contests around the world, such as the ACM contest for the C language. -- Andre

functional programming contest

2002-04-04 Thread Tom Pledger
Andre W B Furtado writes: | I was visiting http://www.ai.mit.edu/extra/icfp-contest/ and noticed that | there was a functional programming contest in ICFP 98. I'd like to know if | there are any periodic functional progamming contests around the world, such | as the ACM contest for the C

RE: functional programming contest

2002-04-04 Thread Simon Peyton-Jones
Yes, and there will be one this year too. Tim Sheard is organising it. Simon | -Original Message- | From: Tom Pledger [mailto:[EMAIL PROTECTED]] | Sent: 05 April 2002 04:03 | To: [EMAIL PROTECTED] | Subject: functional programming contest | | | Andre W B Furtado writes: | | I was

RE: explicitly quantified classes in functions

2002-04-04 Thread Simon Peyton-Jones
| Ah yes, silly me. What I had in mind, I suppose, was | something more along the lines of: | | foo :: Double - (exists q . Foo q = q) Correct. Currently you can only express this by wrapping the existential in a constructor: data R = forall q. Foo q = MkR q foo :: Double -

Cannot install 5.02.1 on Solaris 2.7 (building from source)

2002-04-04 Thread Martin Dorr
If I do the following ... $ tar xvfi ../ghc-5.02.1-src-1.tar $ tar xvfi ../happy-1.11-src.tar $ cd ghc-5.02.1 $ cp -r ../happy-1.11/happy . $ echo prefix = /home/dorr/func/haskell/installs mk/build.mk $ ./configure $ cd ghc/rts/gmp $ ./configure $ cd - $ cd ghc $ ./configure # not sure this is

RE: GHC Dynamic Loading

2002-04-04 Thread Simon Marlow
I am trying to dynamically load a shared haskell module - and it almost works... however as soon as the grabage collector thread runs it frees/moves something and the program falls over. Presumably this means I need to use a StablePtr - however I have as yet been unable to work out

Cygwin and GHC

2002-04-04 Thread Simon Peyton-Jones
Folks, There's been some mail recently about GHC and Cygwin, some of it on the nhc-bugs list (hence ccing this there). I'm a bit confused so this message is to try to clarify the situation. The GHC core team is now down to Simon M and me. Sigbjorn heroically helps out on Win32 stuff, but it

Fw: Cygwin and GHC

2002-04-04 Thread Claus Reinke
[interesting; postfix at haskell.org claims rightly that there is no ghc-users list there. so how did Simon's mail reach me in the first place? well, here we go again] - Original Message - From: Claus Reinke [EMAIL PROTECTED] To: Simon Peyton-Jones [EMAIL PROTECTED]; [EMAIL PROTECTED];

RE: [nhc-bugs] Cygwin and GHC

2002-04-04 Thread Simon Peyton-Jones
| Can you comment on how much longer the GHC core team will exist? Indefinitely. Meaning that (a) There is no time limit: Simon and I have permanent posts Reuben and Julian left when the grant ran out; we knew that was coming, but there is no correponding future event known. (b) But (as has

Re: Cygwin GHC

2002-04-04 Thread George Russell
Simon Peyton Jones wrote: I am therefore deeply reluctant to provide both GHC-for-mingw32 and GHC-for-cygwin. One build on Win32 is enough! We ended up with a mingw32 basis because it meant we could make GHC=20 completely self-contained -- no dependence on cygwin1.dll etc. This was

explicitly quantified classes in functions

2002-04-04 Thread Hal Daume III
Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03) complains about unifying q with Double. I *can* write: class

Re: explicitly quantified classes in functions

2002-04-04 Thread David Feuer
On Thu, Apr 04, 2002, Hal Daume III wrote: Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03) complains

Re: explicitly quantified classes in functions

2002-04-04 Thread Hal Daume III
I believe that ghc translates the signature above to foo :: forall q . Foo q = Double - q (I don't understand why GHC does this... it seems to have more potential for confusion) I thought post 5.03 didn't do this? Isn't this the point of Putting type annotations to use? Or am I missing

Re: explicitly quantified classes in functions

2002-04-04 Thread John Hughes
Why can I not define the following (in ghc): class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03)

Re: explicitly quantified classes in functions

2002-04-04 Thread Hal Daume III
class Foo p where instance Foo Double where foo :: Double - (forall q . Foo q = q) foo p = p From my humble (lack of) knowledge, there seems to be nothing wrong here, but ghc (5.03) complains about unifying q with Double. Well, of course! The

RE: explicitly quantified classes in functions

2002-04-04 Thread Simon Peyton-Jones
| Ah yes, silly me. What I had in mind, I suppose, was | something more along the lines of: | | foo :: Double - (exists q . Foo q = q) Correct. Currently you can only express this by wrapping the existential in a constructor: data R = forall q. Foo q = MkR q foo :: Double -

Re: Lambda over types.

2002-04-04 Thread anatoli
(Redirected from haskell to haskell-cafe.) Well, I tried to fix the problems you mention. Results attached. I have managed to do without de Brujin notation. The evaluator is (modulo bugs!) normal order. One can easily do an applicative order evaluator as well. Evaluating to WHNF is probably

Re: hashmap withdrawal and poor haskell style

2002-04-04 Thread Long Goodbye
module Main where main = do content - getContents let starstat = oneline content alphabet = ['a'..'z'] count ch = length . filter (==ch) oneline str ch = [ch] ++ ++ stars (count ch str) stars x = take x ['*','*'..]

Re: Ex 9.9 in Paul Hudak's book

2002-04-04 Thread Paul Hudak
What I would like to know is how the 'fix' function could be used to find the fixed point of a function like ( \n - 2*n ). Olaf and Lennart said a little about least fixpoints, but little about what makes a fixpoint least. Olaf suggested looking up papers on domain theory or denotational