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
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
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
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?
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
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
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
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
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
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
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
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)
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
13 matches
Mail list logo