Mysterious error from ghc6.2

2004-03-11 Thread George Russell
# ghc -c FunnyError.hs FunnyError.hs:7: Couldn't match `Bool' against `[Char]' Expected type: Bool Inferred type: [Char] In the definition of `b': b x Foo = () In the definition for method `b' FunnyError.hs:9: tcLookup: `FunnyError.$dmb' is not in scope In the

RE: Mysterious error from ghc6.2

2004-03-11 Thread Simon Peyton-Jones
Ha. A long-standing infelicity, thank you. I've fixed the HEAD. Simon, this could go in the 6.2 branch I believe Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-bugs- | [EMAIL PROTECTED] On Behalf Of George Russell | Sent: 11 March 2004 10:32 | To:

Bug in the installation scripts (trivial)

2004-03-11 Thread Maurizio Colucci
Hello, I just installed ghc on Mandrake Linux 10, from the file [EMAIL PROTECTED] I was getting an error when I ran ghc and ghci: Hsc static flags: -static *** Parser: interactive:1: Could not find interface file for `GHC.Exception' locations searched: GHC/Exception.hs

RE: Bug in the installation scripts (trivial)

2004-03-11 Thread Simon Marlow
I just installed ghc on Mandrake Linux 10, from the file [EMAIL PROTECTED] [EMAIL PROTECTED] is a mailing list; which distribution did you use to install GHC? I've been able to solve it with cd /usr/local/lib/ghc-6.2/imports/System ln -s io IO cd /usr/local/lib/ghc-6.2/imports/

Re: Bug in the installation scripts (trivial)

2004-03-11 Thread Maurizio Colucci
On Thursday 11 March 2004 13:01, Simon Marlow wrote: I just installed ghc on Mandrake Linux 10, from the file [EMAIL PROTECTED] [EMAIL PROTECTED] is a mailing list; which distribution did you use to install GHC? Sorry, I had a problem with cut paste. :-) The file I used to install is

RE: Bug in the installation scripts (trivial)

2004-03-11 Thread Simon Marlow
I've been able to solve it with cd /usr/local/lib/ghc-6.2/imports/System ln -s io IO cd /usr/local/lib/ghc-6.2/imports/ ln -s ghc GHC You mean these directories were present but lower case? Yes. ghci -v and ghc -v were giving a very clear output that they

RE: Overlapping instances and multi-parameter classes

2004-03-11 Thread Simon Peyton-Jones
I had a look. It turns out to be an utterly bogus and incorrect test for overlap in 6.2. As it happens, I've already re-written that part of the compiler in the HEAD, to do lazy overlap resolution. In GHC 6.2 the instances instance C a Bool instance C Bool a are rejected because

RE: Release Candidate for 6.2.1 available

2004-03-11 Thread Simon Marlow
ghc-6.2.20040304 and later are release candidates for 6.2.1 Get them from here: http://www.haskell.org/ghc/dist/stable/dist/ This is your last chance to test... I'm going to freeze the release on Monday (15 March). Cheers, Simon

ghci can't continue in a situation (HXml Toolbox)

2004-03-11 Thread Ferenc Wagner
Hello, Please have a look at the transcript below. GHC happily compiles the file with the Makefile, while GHCi chokes on it. I would be grateful for any insight into the problem. Feri. tba:~/haskell/xml/ $ cat xml2wiki.hs import System import XmlInput import XmlTree import

Re: ghci can't continue in a situation (HXml Toolbox)

2004-03-11 Thread Ferenc Wagner
Simon David Foster [EMAIL PROTECTED] writes: I had to remove POpen from HXT to make it work correctly with GHC 6.2. I think this because posix now includes popen and so it conflicts with the version in HXT. Try removing POpen.hs and doing it again, make sure you load package posix. Yep, it

Re: Release Candidate for 6.2.1 available

2004-03-11 Thread Sigbjorn Finne
An installer for Windows users can now also be found in that directory. --sigbjorn - Original Message - From: Simon Marlow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 04:43 Subject: RE: Release Candidate for 6.2.1 available ghc-6.2.20040304 and later

Re: Release Candidate for 6.2.1 available

2004-03-11 Thread Sven Panne
Just a short note from my side: I've tested both the branch (not the .tar.bz2) on x86 Linux and the .msi on Win2k. Both seem to work fine... Cheers, S. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Re: [Haskell] Re: RFC: DData in hierarchical libraries

2004-03-11 Thread Johannes Waldmann
A few comments on the DData.Map proposal: * nice work. I might start using it (instead of Data.FiniteMap) just because the function names look better :-) * argument ordering: the existing Data.FiniteMap mostly has f :: FiniteMap - ... - FiniteMap while the proposal uses f ::

RE: [Haskell] RFC: DData in hierarchical libraries

2004-03-11 Thread Simon Peyton-Jones
I'm glad to see this progressing. However, it might be better to move this thread to the libraries mailing list, which is specifically for this purpose. Anyone out there on the Haskell list who wants to contribute to discussion about Haskell libraries?

Re: [Haskell] RFC: DData in hierarchical libraries

2004-03-11 Thread Daan Leijen
Hi Christian, (Some have already replied, but I'll say some more about some issues) On Mon, 08 Mar 2004 12:32:21 +0100, Christian Maeder [EMAIL PROTECTED] wrote: Set.toAscList is not really necessary as it is the same as Set.toList. Not necessarily: the lists from Set.toList will be equal for

[Haskell] Consultant directory

2004-03-11 Thread Mark T.B. Carroll
I was wondering if it might be a good idea to build up some list of clever Haskell people who would be happy to do consultancy work on advanced techniques. Something along the lines of name, location, contact information, special expertise. I know that there are a couple of companies out there who

[Haskell] What is the best way to write adapters?

2004-03-11 Thread Ben_Yu
Hi, I have a class: class Sig a where getName :: a - Id getParents :: a - [TypeExp] getMethods :: a - [MethodDef] getFields :: a - [FieldDef] and a few data structures that are instances of Sig. They are ClassDef, ProtocolDef, SignatureDef, etc. Now I have a type Def defined as:

[Haskell] What is the best way to write adapters?

2004-03-11 Thread oleg
The code is currently like this: instance Sig Def where getName (DefClass c) = getName c getName(DefProtocol p) getName p getName(DefSignature s) = getName s getParents(DefClass c) = getParents c getParents(DefProtocol p) = getParents p blah blah blah... But this seems very

Re: [Haskell] What is the best way to write adapters?

2004-03-11 Thread Ben_Yu
Thanks! Oleg. This works and it looks nice! And now, my code can be like: class FwdSig d where (forall a. Sig a = a - w) - d - w All the types that supports such forwarding are instances of FwdSig. My Def type is: instance FwdSig Def where fwd f (ClassDef c) = f c fwd f (ProtDef p)

Re: [Haskell] What is the best way to write adapters?

2004-03-11 Thread Brandon Michael Moore
On Thu, 11 Mar 2004 [EMAIL PROTECTED] wrote: Thanks! Oleg. This works and it looks nice! And now, my code can be like: class FwdSig d where (forall a. Sig a = a - w) - d - w All the types that supports such forwarding are instances of FwdSig. My Def type is: instance FwdSig Def

[Haskell] CFP: Haskell Workshop 2004

2004-03-11 Thread Henrik Nilsson
Please find enclosed the Call For Papers for the 2004 Haskell Workshop, to be held on 22 September in Snowbird, Utah, USA in association with ICFP'04. My apologies for multiple copies. Best regards, /Henrik -- Henrik Nilsson School of Computer Science and Information Technology The University

Re: [Haskell] HaXml and XML Schema

2004-03-11 Thread Steffen Mazanek
Hello, thank you for the references. Looks promising. I will read it carefully. A nice solution I really like was found by Alastair Reid. He proposed to me (hope it is ok to cite this) the declaration: data Salutation = [Either Char Name] We think it will not scale well, too, however, it is

[Haskell-cafe] Passing types as arguments

2004-03-11 Thread ajb
G'day everyone. Some time ago a suggestion came up about passing types as arguments to functions: http://www.haskell.org/pipermail/haskell/2003-June/012184.html As a matter of curiosity, the topic has come up again on the wiki: