Re: Socket library ghc 5.02.1

2001-11-28 Thread Sven Eric Panitz
From: Sigbjorn Finne [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue, 27 Nov 2001 09:30:04 -0800 Conclusion: you're hosed with ghc-5.02.1 and its socket libs under Win32. Sorry. If you don't mind getting your

Re: Casting dynamic values

2001-11-28 Thread Marcin 'Qrczak' Kowalczyk
27 Nov 2001 17:31:10 -0700, Alastair David Reid [EMAIL PROTECTED] pisze: If GHC is able to inline these functions, construction and deconstruction of the pair can probably be eliminated. cast is compiled to something similar to this: coerce :: a - b -- this generates no runtime code type

Communicating with other programs (Win32)

2001-11-28 Thread Jan de Wit
Hi all, In my free time, I'm writing a Go program in Haskell. Main platform is GHC and GHCi under Win32. It is coming along nicely: it has a GUI and the moves it comes up with are starting to make some sense. For testing (and maybe later training :) purposes I want it to be able to play against

Wanted: Hash Tables

2001-11-28 Thread Johannes Waldmann
Dear all, I would like to use hash tables in my Haskell programs (especially in places where I use `FiniteMap String a' now). I remember there was a `class Hash' in hbc (?) and I imagine this should be combined with STArray or the like. Is there already some re-usable code for doing this?

runtime effect of polymorphic Array.!

2001-11-28 Thread Johannes Waldmann
Of course (!) is polymorphic (!) :: Ix a = Array a b - a - b but on the other hand the GHC manual says Overloaded functions are not your friend: Haskell's overloading (using type classes) is elegant, neat, etc., etc., but it is death to performance if left to linger in an

Where to ask questions regarding categories and datatypes

2001-11-28 Thread Peter Douglass
Hi, I have a number of questions regarding categories and datatypes. I know that many of the folk in this mailing list could answer these question, but I wonder if there is a more appropriate forum. (i.e. the question are not Haskell specific). Thanks, --Peter Douglass

Possible bug/omission in Numeric library?

2001-11-28 Thread Malcolm Wallace
There is something strange about the Haskell'98 Numeric library, which I think could be considered a bug of sorts. There are functions readDec, readOct, readHex :: (Integral a) = ReadS a which read an integer from a string in base 10, 8, or 16, but there are no corresponding show functions

RE: Possible bug/omission in Numeric library?

2001-11-28 Thread Simon Marlow
There is something strange about the Haskell'98 Numeric library, which I think could be considered a bug of sorts. There are functions readDec, readOct, readHex :: (Integral a) = ReadS a which read an integer from a string in base 10, 8, or 16, but there are no corresponding show

Re: Where to ask questions regarding categories and datatypes

2001-11-28 Thread Marcin Benke
Peter Douglass writes: Hi, I have a number of questions regarding categories and datatypes. I know that many of the folk in this mailing list could answer these question, but I wonder if there is a more appropriate forum. (i.e. the question are not Haskell specific). Why don't

Re: Possible bug/omission in Numeric library?

2001-11-28 Thread Karl-Filip Faxen
Hi! In fact, we might want to be slightly more general. Why don't go for a general base conversion, much like Malcolms idea but without converting every digit to a Char. Say something like toBase :: (Integral a) = a - a - [a] toBase base n | n 0 = error Numeric.toBase: can't

IO library report

2001-11-28 Thread Ian Lynagh
The report has the following example: import IO main = do hSetBuffering stdout NoBuffering putStr Enter an integer: x1 - readNum putStr Enter another integer: x2 - readNum

IO errors

2001-11-28 Thread Ian Lynagh
Hi guys, Me again I'm afraid... A quick look at the source looks like both GHC and NHC will simply pass on errors from the OS, so for example with module Main where import IO import Directory main :: IO() main = do catch (createDirectory this/does/not/exist/foo)

Postdoc opening at ORNL

2001-11-28 Thread James B. White III (Trey)
I wonder if one of the Haskell-ers on this list might know someone who would be interested in this: Postdoctoral Position Computer Science Computer Science and Mathematics Division The Computer Science Mathematics (CSM) Division