Re: Bogus stats when running SMP programs

2006-09-27 Thread Simon Marlow
Tomasz Zielonka wrote: On Tue, Sep 26, 2006 at 01:46:30AM +0100, Ian Lynagh wrote: I couldn't reproduce this with a simple program that forked off 4 threads to do computation on a single CPU machine, and neither could someone on IRC with head from Sep 15 on a Core Duo. Is it possible to send

Re: [GHC] #16: Extensionsflags

2006-09-27 Thread GHC
#16: Extensionsflags --+- Reporter: axelkr | Owner: igloo Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler

Re: [GHC] #905: the `impossible' happened: ASSERT failed! file codeGen/ClosureInfo.lhs, line 596

2006-09-27 Thread GHC
#905: the `impossible' happened: ASSERT failed! file codeGen/ClosureInfo.lhs, line 596 --+- Reporter: Misha Aizatulin [EMAIL PROTECTED] | Owner: Type: bug |

Re: Summary of GHC 6.6 test suite failures on MSYS/MinGW

2006-09-27 Thread Simon Marlow
Brian Smith wrote: On 9/26/06, *Simon Marlow* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Brian Smith wrote: The test always failed. When I decreased the number of threads in the test from 5,000 to 1,400 or so, then the tests passed sometimes, and sometimes

Re: [GHC] #910: --make should have a -j flag for parallel building

2006-09-27 Thread GHC
#910: --make should have a -j flag for parallel building --+- Reporter: igloo| Owner: Type: feature request | Status: new Priority: normal | Milestone:

Re: [GHC] #880: someFunction :: TypeRep - Int

2006-09-27 Thread GHC
#880: someFunction :: TypeRep - Int --+- Reporter: guest| Owner: Type: feature request | Status: new Priority: normal | Milestone: Component:

Re: [GHC] #880: someFunction :: TypeRep - Int

2006-09-27 Thread GHC
#880: someFunction :: TypeRep - Int --+- Reporter: guest| Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component:

[GHC] #911: Better information about the location of exceptions

2006-09-27 Thread GHC
#911: Better information about the location of exceptions +--- Reporter: simonmar |Owner: Type: feature request | Status: new Priority: normal |Milestone:

Re: Bogus stats when running SMP programs

2006-09-27 Thread Tomasz Zielonka
On Wed, Sep 27, 2006 at 09:25:39AM +0100, Simon Marlow wrote: Perhaps clock_gettime() is returning strange results on your system. Could you try compiling with -threaded -debug, and run the program under gdb. When I compile with -threaded -debug, the stats are OK :-/ Best regards Tomasz

Re: Bogus stats when running SMP programs

2006-09-27 Thread Simon Marlow
Tomasz Zielonka wrote: On Wed, Sep 27, 2006 at 09:25:39AM +0100, Simon Marlow wrote: Perhaps clock_gettime() is returning strange results on your system. Could you try compiling with -threaded -debug, and run the program under gdb. When I compile with -threaded -debug, the stats are OK

Re: Bogus stats when running SMP programs

2006-09-27 Thread Tomasz Zielonka
On Wed, Sep 27, 2006 at 12:06:34PM +0100, Simon Marlow wrote: When I compile with -threaded -debug, the stats are OK :-/ Ok, maybe try strace? Nothing suspicious, at least for me. Strace logs attached. I'll try to compile GHC from sources and put some debugging prints in the RTS. There

Re: [GHC] #887: GHCi prints results of IO actions

2006-09-27 Thread GHC
#887: GHCi prints results of IO actions --+- Reporter: guest| Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi |

Re: [GHC] #806: hGetBufNonBlocking doesn't work with -threaded on Windows

2006-09-27 Thread GHC
#806: hGetBufNonBlocking doesn't work with -threaded on Windows -+-- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: new Priority: normal |

[GHC] #912: Build system is missing various dependencies

2006-09-27 Thread GHC
#912: Build system is missing various dependencies -+-- Reporter: simonmar |Owner: Type: bug | Status: new Priority: normal|Milestone:

Re: [GHC] #710: library reorganisation

2006-09-27 Thread GHC
#710: library reorganisation -+-- Reporter: simonmar| Owner: Type: task| Status: new Priority: normal | Milestone: 6.8 Component:

Re: Bogus stats when running SMP programs

2006-09-27 Thread Ian Lynagh
On Thu, Sep 21, 2006 at 08:03:53PM +0200, Tomasz Zielonka wrote: Hello! I am getting nonsensical execution statistics (+RTS -Sstderr) when running programs in SMP mode (+RTS -N2). I've found a machine which had the same problem. I think I've fixed it with Thu Sep 28 00:46:30 BST 2006 Ian

Re: [GHC] #867: Integer arithmetic gives the wrong answer on amd64/Linux

2006-09-27 Thread GHC
#867: Integer arithmetic gives the wrong answer on amd64/Linux ---+ Reporter: igloo | Owner: Type: bug | Status: closed Priority: normal| Milestone:

Re: Summary of GHC 6.6 test suite failures on MSYS/MinGW

2006-09-27 Thread Brian Smith
On 9/26/06, Simon Marlow [EMAIL PROTECTED] wrote: Brian Smith wrote: Now, when I tried to rerun the tests against the latest ghc-6.6, ghc.exe is segfaulting on ffi012(ghci), conc049(ghci), and conc023(ghci): Unhandled exception at 0x0207fc58 in ghc.exe: 0xC005: Access violation.That's a bit

Re: UTF-8 decoding error

2006-09-27 Thread Matthew Pocock
Fortress (sun's possibly-not-vaporware hpc language) supports arbitrary unicode chars in code, and has an escape syntax for commonly used things. Similarly, proof-general/isabelle supports tex-style escapes for symbols greek. It seems to me that a pre-processor that turns human-friendly

Re[2]: Year 2038 problem in GHC 6.4.2 runtime

2006-09-27 Thread Bulat Ziganshin
Hello Cyril, Tuesday, September 26, 2006, 1:30:23 AM, you wrote: I am afraid I would need the new Time library a little earlier than 2038, because I am working on financial software where it is not uncommon to have contracts over 30 years long. of course i'm joking. i even don't known is

Re: more extra-libs for ghc 6.6

2006-09-27 Thread Simon Marlow
Bulat Ziganshin wrote: how about adding to the list of extra libs the following very useful ones: regex-* FilePath MissingH Edison Let me echo what Ian said: the idea with extralibs was not to bundle useful stuff with GHC, but rather to *separate* from GHC as many of the bundled libraries

Re: bug in mallocForeignPtrBytes (both 6.4 and 6.6)

2006-09-27 Thread Simon Marlow
Duncan Coutts wrote: On Sun, 2006-09-24 at 01:28 +0400, Bulat Ziganshin wrote: Hello Duncan, Sunday, September 24, 2006, 12:22:38 AM, you wrote: after program prints 40 mb allocated look at Task Manager indication - it shows that two times more memory actually in use. it seems that problem

Re: ANNOUNCE: GHC 6.6 Release Candidate

2006-09-27 Thread Simon Marlow
Christian Maeder wrote: Simon Marlow schrieb: Only a week late, we are pleased to announce the Release Candidate phase for GHC 6.6. Snapshots beginning with 6.5.20060831 are release candidates for 6.6 Download snapshots from here: http://www.haskell.org/ghc/dist/current/dist/ I've

Re: ANNOUNCE: GHC 6.6 Release Candidate

2006-09-27 Thread Christian Maeder
Simon Marlow schrieb: Christian Maeder wrote: I've downloaded the source bundle ghc-6.5.20060918-src.tar.bz After ./configure and make, I realized that I have no root permissions for installation. So called ./configure --prefix=/local/home/maeder/ghc-6.5 followed by make and make install

RE: bug in mallocForeignPtrBytes (both 6.4 and 6.6)

2006-09-27 Thread Simon Peyton-Jones
I added notes about this to http://haskell.org/haskellwiki/Performance/GHC S | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] | On Behalf Of Simon Marlow | Sent: 27 September 2006 13:44 | To: Duncan Coutts | Cc: glasgow-haskell-users@haskell.org |

Re: compiler-independent core libraries infrastructure

2006-09-27 Thread Ian Lynagh
On Fri, Sep 15, 2006 at 05:20:36PM +0100, Ian Lynagh wrote: As it happens I was working on getting GHC to use cabal to build base et al on the plane the other day, and I had a brief look at this. See my comment in http://hackage.haskell.org/trac/ghc/ticket/710 for the results of my longer

more fixups for GHC docs: ddump flags

2006-09-27 Thread Rene de Visser
The flags under section 4.17.26. Compiler debugging options seem to be out of date. They seem to be wrong for both 6.42 and 6.6 For example --ddump-cmm is not listed, but works. But --ddump-absC is listed, and gives the error unknown flag. I can't get -ddump-stix to work either. Gone, or

Re: UTF-8 decoding error

2006-09-27 Thread Jan-Willem Maessen
On Sep 27, 2006, at 6:05 AM, Matthew Pocock wrote: Fortress (sun's possibly-not-vaporware hpc language) supports arbitrary unicode chars in code, and has an escape syntax for commonly used things. I have spent the past week writing Fortress code (which runs in parallel, even). But I'm

Re: [Haskell] Deferred instance declarations (serialization of existential boxes)

2006-09-27 Thread Misha Aizatulin
Simon Peyton-Jones wrote: Concerning your application | I am having a box like | data Box = forall a. Cxt a = Box a | and want to write a Read instances for it. I don’t see how it helps to defer the Read instance. I would defer the instance declaration till the point where I know

[Haskell] Haskell Weekly News: September 27, 2006

2006-09-27 Thread Donald Bruce Stewart
--- Haskell Weekly News http://haskell.org/haskellwiki/HWN Issue 42 - September 27, 2006 --- Welcome to issue 42 of HWN, a weekly newsletter covering

[Haskell] Re: compiler-independent core libraries infrastructure

2006-09-27 Thread Ian Lynagh
On Fri, Sep 15, 2006 at 05:20:36PM +0100, Ian Lynagh wrote: As it happens I was working on getting GHC to use cabal to build base et al on the plane the other day, and I had a brief look at this. See my comment in http://hackage.haskell.org/trac/ghc/ticket/710 for the results of my longer

[Haskell] Haskell' Status Report

2006-09-27 Thread Isaac Jones
Ravi Nanavati has very helpfully put together a status report for the Haskell Prime process. Please see this link, or read the pasted text below: http://hackage.haskell.org/trac/haskell-prime/wiki/Status' peace, isaac Summary: Since the Haskell Workshop last year, the Haskell community

[Haskell] Haskell Standard: Please email me if you want to join the committee.

2006-09-27 Thread Isaac Jones
Greetings, As announced at the Haskell Workshop, the Haskell Prime process is running another committee selection round. We are specifically looking for people to write sections of the Haskell Report for the definitely in and probably in proposals, as described in:

[Haskell] Haskell' Status Report

2006-09-27 Thread Doug McIlroy
One thing jumped out at me from the status report: everything was add, which reminded me of many old languages designed by accretion. Are the new facilities so perfectly orthogonal as not to subsume anything that was already there? Are none of them simply relaxations of previous limitatations?

Haskell' Status Report

2006-09-27 Thread Isaac Jones
Ravi Nanavati has very helpfully put together a status report for the Haskell Prime process. Please see this link, or read the pasted text below: http://hackage.haskell.org/trac/haskell-prime/wiki/Status' peace, isaac Summary: Since the Haskell Workshop last year, the Haskell community

Trac Ticket Component Field?

2006-09-27 Thread Ashley Yakeley
What do the various values of the Component field mean? Most issues have Proposal, but some have HaskellPrime. -- Ashley Yakeley Seattle WA ___ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime

Re: Trac Ticket Component Field?

2006-09-27 Thread isaac jones
On Wed, 2006-09-27 at 16:27 -0700, Ashley Yakeley wrote: What do the various values of the Component field mean? Most issues have Proposal, but some have HaskellPrime. If it is a proposal for something to go into/be removed from the language, then it should be listed as proposal. If it's some

Re: Trac Ticket Component Field?

2006-09-27 Thread Ashley Yakeley
isaac jones wrote: On Wed, 2006-09-27 at 16:27 -0700, Ashley Yakeley wrote: What do the various values of the Component field mean? Most issues have Proposal, but some have HaskellPrime. If it is a proposal for something to go into/be removed from the language, then it should be listed as

Re: [Haskell-cafe] Unable to profile program using Data.ByteString.Lazy

2006-09-27 Thread Ketil Malde
Jason Dagit [EMAIL PROTECTED] writes: Ubuntu seems to be a bit behind then. The current official release of the 6.4 branch is at 6.4.2. Debian seems to provide this version, maybe you can use the debian package? But, if I were you I wouldn't worry so much about upgrading ghc but instead

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread Esa Ilari Vuokko
Hi On 9/27/06, Matthew Bromberg [EMAIL PROTECTED] wrote: though I have a binary build of ghc 6.5 If you have new ghc 6.5, you can use --mk-dll with --make, in case that helps. ghc --mk-dll -o netsim.dll ExternLib.o ExternLib_stub.o dllNet.o src1.o src1_stub.o src2.o -optl-lmatrixstack

[Haskell-cafe] Re: Creating DLLs with GHC

2006-09-27 Thread Cyril Schmidt
Matthew, As regards the symbols that end with _closure, I believe you can resolve them by adding -package parsec to the ghc command line (as far as I can see, all the symbols you list come from the parsec package). I don't know, though, what to do with the undefined symbols from matrixstack. You

Re: [Haskell-cafe] Unable to profile program using Data.ByteString.Lazy

2006-09-27 Thread Ketil Malde
Ketil Malde [EMAIL PROTECTED] writes: I filed a request to backport [ghc 6.4.2 to Ubuntu Dapper], but for some reason, I am unable to find it again. Hah! Found it (with some IRC assistance): https://launchpad.net/distros/ubuntu/+source/ghc6/+bug/56516 -k -- If I haven't seen further, it

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Johan Tibell
On 9/27/06, Lyle Kopnicky [EMAIL PROTECTED] wrote: Hi folks, It turns out Haskell is vindicated. It's my algorithm that was slow. As Robert Dockins pointed out, the double nested loop is just going to take a long time. As evidence, it turns out my C++ version is just as slow as the Haskell

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Ketil Malde
Lyle Kopnicky [EMAIL PROTECTED] writes: If you have some other metric other than prefix in mind for partial matches, then things probably get a lot more complicated. You're probably looking at calculating minimum distances in some feature-space, which calls for pretty sophisticated

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Johan Tibell
On 9/27/06, Johan Tibell [EMAIL PROTECTED] wrote: On 9/27/06, Lyle Kopnicky [EMAIL PROTECTED] wrote: Hi folks, It turns out Haskell is vindicated. It's my algorithm that was slow. As Robert Dockins pointed out, the double nested loop is just going to take a long time. As evidence, it

Re: [Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-27 Thread Bulat Ziganshin
Hello Max, Monday, September 25, 2006, 10:41:20 PM, you wrote: Ch That's a religious statement. I was looking for some strong Ch arguments for the nonbelievers that Haskell is a 5GL. But what about nonbelievers in language classification by generation? i was not on the market when 1..3 GLs

Re[2]: [Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-27 Thread Bulat Ziganshin
Hello Bill, Tuesday, September 26, 2006, 1:03:02 AM, you wrote: I spent some time working on a large Prolog application where performance was critical, ... I think you're right that Haskell should be in the same bag as Prolog. and Haskell is the same as C++ when performance is critical,

RE: [Haskell-cafe] source code for haskell web server?

2006-09-27 Thread Pasqualino 'Titto' Assini
There is also the HAppS application server and the HaskellNet library. Would not be possible to merge the protocol-handling parts of all these libraries into a generic Internet Haskell server that could then be expanded to support CGIs, transactions, etc.? Regards, titto -Original

Re: [Haskell-cafe] Computing lazy and strict list operations at thesame time

2006-09-27 Thread Claus Reinke
This is a follow-up to a thread from June-July[1]. The question was how to write the function initlast :: [a] - ([a], a) initlast xs = (init xs, last xs) so that it can be consumed in fixed space: main = print $ case initlast [0..10] of (init, last) -

Re: [Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-27 Thread Ch. A. Herrmann
Hi, an experienced person at our lab told me that the classification into generations has become unfashioned in the last decade; thus I think I will stay away from using it but argue with concrete abstraction features. Concerning the point someone made about the features of Haskell: * pattern

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread SevenThunders
Well I tried this statement ghc --mk-dll -fglasgow-exts -fffi -I. --make ExternLib.hs It only compiled the object file, creating ExternLib.o, but it did not create the stub file or attempt to link in the dependent packages. I then went back to this, ghc --mk-dll -fglasgow-exts -fffi -o

Re: [Haskell-cafe] Computing lazy and strict list operations at the same time

2006-09-27 Thread Brandon Moore
Andrew Pimlott wrote: This is a follow-up to a thread from June-July[1]. The question was how to write the function initlast :: [a] - ([a], a) initlast xs = (init xs, last xs) so that it can be consumed in fixed space: main = print $ case initlast [0..10] of

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Lyle Kopnicky
Ketil Malde wrote: Do you really need that to search for movie titles? At any rate, an exact-match finite-map implementation is a good start - to get good performance, you probably will need to use some kind of index to reduce the amount of data to search exhaustively (all-against-all). For

[Haskell-cafe] Re: Getting the latest

2006-09-27 Thread Max Vasin
Lyle == Lyle Kopnicky [EMAIL PROTECTED] writes: Lyle My question is, when I do 'make install', will it just overwrite Lyle the version (6.4.1) I already have? Or will they go in separate Lyle places? This depends on the prefix you configured sources with (/usr/local by default). Lyle I have no

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread Jason Dagit
On 9/26/06, Matthew Bromberg [EMAIL PROTECTED] wrote: I am having some difficulty with creating a dynamic link library using GHC on windows XP. I am attempting to follow the example in http://www.haskell.org/ghc/docs/6.4/html/users_guide/win32-dlls.html though I have a binary build of ghc 6.5

Re: [Haskell-cafe] Optimizing a title matcher

2006-09-27 Thread Brandon Moore
Ketil Malde wrote: Lyle Kopnicky [EMAIL PROTECTED] writes: If you have some other metric other than prefix in mind for partial matches, then things probably get a lot more complicated. You're probably looking at calculating minimum distances in some feature-space, which calls for pretty

Re: [Haskell-cafe] Re: Getting the latest

2006-09-27 Thread Lyle Kopnicky
Max Vasin wrote: Lyle I have no idea how it decides where to go. Right now ghc Lyle 6.4.1 is in /usr/local/bin/ghc. After I 'make install', will it Lyle be ghc 6.5? I don't want to screw up the installed package so it Lyle can't be updated later. It should be :-) It should be screwed up? Or

[Haskell-cafe] A better syntax for qualified operators?

2006-09-27 Thread Brian Hulley
Hi - Consider the scenario when you want to find a function that returns the i'th element of an array but all you know is that there is a module called Data.Array.IArray that will probably have such a function in it. So you start typing in your program: let ith = Data.Array.IArray.

[Haskell-cafe] Expressing seq

2006-09-27 Thread Chad Scherrer
I was reading on p. 29 of A History of Haskell (a great read, by the way) about the controversy of adding seq to the language. But other than for efficiency reasons, is there really any new primitive that needs to be added to support this? As long as the compiler doesn't optimize it away, why

[Haskell-cafe] Duplicate Instance problem

2006-09-27 Thread Jason Dagit
Hello, I tried to create a type class for making instances of Show display a custom way. After using my class for a while I found that sometimes RealFloats would display as 'NaN' and this is unacceptable. So at this point I had something like: {-# OPTIONS_GHC -fglasgow-exts

Re: [Haskell-cafe] Expressing seq

2006-09-27 Thread Jason Dagit
On 9/27/06, Chad Scherrer [EMAIL PROTECTED] wrote: I was reading on p. 29 of A History of Haskell (a great read, by the way) about the controversy of adding seq to the language. But other than for efficiency reasons, is there really any new primitive that needs to be added to support this? As

Re: [Haskell-cafe] A better syntax for qualified operators?

2006-09-27 Thread Brandon Moore
Brian Hulley wrote: Hi - Consider the scenario when you want to find a function that returns the i'th element of an array but all you know is that there is a module called Data.Array.IArray that will probably have such a function in it. So you start typing in your program: let ith

Re: [Haskell-cafe] Expressing seq

2006-09-27 Thread Chad Scherrer
There must be a subtlety I'm missing, right? What if the types are not instances of Eq? Jason Thanks, I figured it was something simple. Now I just to convince myself there's no way around that. Is there a proof around somewhere? -- Chad Scherrer Time flies like an arrow; fruit flies

Re: [Haskell-cafe] Expressing seq

2006-09-27 Thread Chris Kuklewicz
Chad Scherrer wrote: I was reading on p. 29 of A History of Haskell (a great read, by the way) about the controversy of adding seq to the language. But other than for efficiency reasons, is there really any new primitive that needs to be added to support this? As long as the compiler

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread SevenThunders
Jason Dagit wrote: On 9/27/06, SevenThunders [EMAIL PROTECTED] wrote: Does cabal really work on windows? I've never had a problem with cabal on windows. I use it instead of makefiles and I'm reasonably happy with it. Although it's installed I notice that when I try to build my

Re: [Haskell-cafe] Expressing seq

2006-09-27 Thread Bertram Felgenhauer
Chad Scherrer wrote: Prelude let sq x y = if x == x then y else y Prelude 1 `sq` 2 2 Prelude (length [1..]) `sq` 2 Interrupted. There must be a subtlety I'm missing, right? Two, at least: First, your sq has a different type, as it requires an Eq instance: Prelude :t sq sq :: (Eq a) = a -

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread SevenThunders
SevenThunders wrote: I am having some difficulty with creating a dynamic link library using GHC on windows XP. I am attempting to follow the example in http://www.haskell.org/ghc/docs/6.4/html/users_guide/win32-dlls.html though I have a binary build of ghc 6.5 My problem (I

Re: [Haskell-cafe] A better syntax for qualified operators?

2006-09-27 Thread Bas van Dijk
On Wednesday 27 September 2006 22:20, Brian Hulley wrote: (The other change needed for LL(1) is to give contexts a marker before they appear eg:         foo :: {MonadIO m} a - m a ) Or move contexts to the end of a type and separate it with a | like Clean does: (See 6.2 of

[Haskell-cafe] Re: Curious Functor Class

2006-09-27 Thread Ashley Yakeley
Jeremy Gibbons wrote: I haven't assimilated the forall here, but datatypes with only one shape of data have been called Naperian by Peter Hancock (because they support a notion of logarithm), and they're instances of McBride and Paterson's idioms or applicative functors.

Re: [Haskell-cafe] Re: [Haskell] Re: compiler-independent core libraries infrastructure

2006-09-27 Thread John Meacham
On Fri, Sep 15, 2006 at 05:12:34PM +0100, Neil Mitchell wrote: So, just to confirm in my mind what you are proposing: Compiler/Version specific Core: Yhc.Core, Hugs.Core, GHC.Core With a different version for each compiler version. Tied intimately to the compiler. A large issue

[Haskell-cafe] flip dot

2006-09-27 Thread Greg Fitzgerald
Since there's talk of removal of the composition operator in Haskell-prime, how about this: Instead of:foo = f . gyou write:foo = .g.fA leading dot would mean, apply all unnamed parameters to the function on the right. A trailing dot would mean, apply the result of the left to the function on the

[Haskell-cafe] Re: variadic functions and typeCast

2006-09-27 Thread oleg
Michael Shulman wrote: class TypeCast x y | x - y, y - x where typeCast :: x - y instance TypeCast x x where typeCast = id Anyway, my main question about typeCast is this: why is it needed here at all? First of all, there is a version of TypeCast that works within the same

Re: [Haskell-cafe] flip dot

2006-09-27 Thread Brandon Moore
Greg Fitzgerald wrote: Since there's talk of removal of the composition operator in Haskell-prime http://hackage.haskell.org/trac/haskell-prime/wiki/CompositionAsDot, how about this: Instead of: foo = f . g you write: foo = .g.f A leading dot would mean, apply all unnamed parameters to the

Re: [Haskell-cafe] flip dot

2006-09-27 Thread Brandon Moore
Brandon Moore wrote: Greg Fitzgerald wrote: Since there's talk of removal of the composition operator in Haskell-prime http://hackage.haskell.org/trac/haskell-prime/wiki/CompositionAsDot, how about this: Instead of: foo = f . g you write: foo = .g.f A leading dot would mean, apply all

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread SevenThunders
SevenThunders wrote: I am having some difficulty with creating a dynamic link library using GHC on windows XP. I need to report some additional strange DLL behavior with ghc.exe unfortunately. Although I solved my linking problems and was able to create a .dll and a MS VC .lib file

[Haskell-cafe] Re: Curious Functor Class

2006-09-27 Thread Ashley Yakeley
I wrote: Perhaps the key is that there exist types P and Q s.t. there's an isomorphism F a = (P - a,Q) This seems to be intuitively Napierian: ln (P - a,Q) = (P,ln a) | ln Q I can believe that Hoistables are in fact Idioms, though I know there are Idioms that are not Hoistables (Maybe

Re: [Haskell-cafe] Creating DLLs with GHC

2006-09-27 Thread SevenThunders
SevenThunders wrote: SevenThunders wrote: I am having some difficulty with creating a dynamic link library using GHC on windows XP. I need to report some additional strange DLL behavior with ghc.exe unfortunately. Although I solved my linking problems and was able to

[Haskell-cafe] Re: variadic functions and typeCast

2006-09-27 Thread Michael Shulman
On 9/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: First of all, there is a version of TypeCast that works within the same module, please see any code described in http://pobox.com/~oleg/ftp/Haskell/typecast.html Yes, I was aware of that; I gave the shorter version just because