Thu, 15 Feb 2001 18:44:56 +1100, Manuel M. T. Chakravarty [EMAIL PROTECTED] pisze:
But the error in CInfo is still there.
That's strange. Could you try this with either the release of
0.8.2 that I put up yesterday or with the CVS version again?
Hmm, it works now. There are two files
I installed ghc 4.08.2 binaries for sparc solaris (and those for intel
linux, too), then tried compiling a sample program (the fibonacci one
in the user guide) with ghc -parallel. The compiler complained:
Could not find interface file for `Prelude'
in the directories ./*.hi
[ moved to [EMAIL PROTECTED] ]
I need to compress the output of my Hakell program. To avoid
the creation
of huge files, I want to compress before writing by means of gzip or
bzip2. However, this seems to be quite involved.
I decided to run the compressor with
runProcess :: FilePath
[EMAIL PROTECTED] (Marcin 'Qrczak' Kowalczyk) wrote,
15 Feb 2001 08:20:00 GMT, Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] pisze:
Does C2HSDeprecated export newStablePtr and freeHaskellFunPtr?
Currently it does not, but GtkCList assumes it does.
Does C2HS export castPtrToFunPtr?
[Apologies for multiple copies of this announcement]
**
* 2nd call for papers and participation
**
Mark Utting writes:
fb::IO ()
fb =
do {
putStr "Enter Data: ";
line - getLine;
let line2 = line;
putStr line2;
}
ERROR "f.hs" (line 13): Syntax error in definition
(unexpected symbol "putStr")
I find it hard to determine
fb =
do {
putStr "Enter Data: ";
line - getLine;
let line2 = line;
putStr line2;
}
I suggest doing this:
fb =
do { putStr "Enter Data: "
; line - getLine
; let line2 = line
; putStr line2
}
which looks
Mark Utting writes:
fb::IO ()
fb =
do {
putStr "Enter Data: ";
line - getLine;
let line2 = line;
putStr line2;
}
ERROR "f.hs" (line 13): Syntax error in definition
(unexpected symbol "putStr")
I find it hard
Does someone like to comment on this?
I'm planning a new cli/odbc-based database connectivity library for
Haskell 98 and want to manage hidden state (various management
information) on the Haskell side.
Some libs. i.e. for gui, extend the IO monad for this using some
"start" function:
main
Hello *,
I need to compress the output of my Hakell program. To avoid the creation
of huge files, I want to compress before writing by means of gzip or
bzip2. However, this seems to be quite involved.
I decided to run the compressor with
runProcess :: FilePath-- Command
| So what's going on? How can the goal be achieved?
I don't know, but here's a different suggestion, using
bzip2 (you could do the same with zlib for .gz files):
use the foreign import mechanism to make BZ2_bzopen,
BZ2_bzwrite and BZ2_bzclose available in your program.
Then:
do bz2 -
Thu, 15 Feb 2001 08:50:41 -0800, Julian Seward (Intl Vendor) [EMAIL PROTECTED]
pisze:
use the foreign import mechanism to make BZ2_bzopen,
BZ2_bzwrite and BZ2_bzclose available in your program.
bzlib and zlib wrappers are available in
http://www.sourceforge.net/projects/qforeign/
(for ghc =
Hello all,
I'm trying to implement some simple natural language semantics with
Haskell (Hugs), and I'm running into trouble with type classes.
Here's what I want to do: Suppose that
x :: a - b
y :: a
then I want to write
apply x y = x y :: b
Moreover, if
x :: a
y :: a -
I just bought 'The Haskell School of Expression', so I downloaded the
latest version of Hugs98, February 2001, and the latest version of the
Hugs Graphics Library, 2.0.3.
Since the documentation mentioned building on Linux, I built and
installed hugs98, ran some tests and felt it was okay. This
I have a program which works fine, except that for certain (large) input
files I have to give it a larger than normal Stack (eg 4M in ghc). GHC
allows one to profile heap, but I'd like to know how to profile stack
contents. Is there a means with ghc/hugs/or something else? Does anyone
have any
On Thu, Feb 15, 2001 at 02:37:09PM -0500, Ken Shan wrote:
test2 = apply [int 3] (apply [(+)::Int-Int-Int] [int 5])
What's strange is that when I tried this just now, the identical line at
the interpreter prompt returned the correct answer [8]. This is with
Hugs from February 2000; I'm
On 2001-02-15T21:38:54-0500, Dylan Thurston wrote:
On Thu, Feb 15, 2001 at 02:37:09PM -0500, Ken Shan wrote:
test2 = apply [int 3] (apply [(+)::Int-Int-Int] [int 5])
What's strange is that when I tried this just now, the identical line at
the interpreter prompt returned the correct
Hi Don,
I just bought 'The Haskell School of Expression', so I downloaded the
latest version of Hugs98, February 2001, and the latest version of the
Hugs Graphics Library, 2.0.3.
Since the documentation mentioned building on Linux, I built and
installed hugs98, ran some tests and felt it
Elke Kasimir [EMAIL PROTECTED] wrote,
I'm planning a new cli/odbc-based database connectivity library for
Haskell 98 and want to manage hidden state (various management
information) on the Haskell side.
Some libs. i.e. for gui, extend the IO monad for this using some
"start" function:
Thu, 15 Feb 2001 21:08:13 -0500, Dylan Thurston [EMAIL PROTECTED] pisze:
On Thu, Feb 15, 2001 at 02:37:09PM -0500, Ken Shan wrote:
test2 = apply [int 3] (apply [(+)::Int-Int-Int] [int 5])
What's strange is that when I tried this just now, the identical line at
the interpreter prompt
Dylan Thurston writes:
I'd like to start using something like this in my programs. What are
the chances that the usability issues will be addressed? (The main
one is all the fromInteger's, I think.)
Have you tried using your alternative Prelude with nhc98? Offhand,
I couldn't be certain
First, I think there's been a misunderstanding. I was referring to
the poster ("Christoph Grein") of
http://www.adapower.com/lang/dimension.html
when I said that "he doesn't know what he's talking about". I've
not been following the haskell cafe thread very closely, but from
what I've seen
Andy Gill's Monad Template Library is good for that, but the link
from the Haskell library page is broken:
http://www.cse.ogi.edu/~andy/monads/doc.htm
Jan
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
hi,
I tried to download the Hugs 98.after downloading Hugs 98,when i try to
click on the Hugs icon it gives me an error saying COULD NOT
LOAD PRELUDE.i am using Windows 2000.
I would be much obliged if you could help me solve the problem.
cheers!!
hello,
i am having
troublegetting my program below to work.
i think i
implemented the monad methods correctly, but
the function
'g' does not type as i would expect. Hugs
thinks that
it is just a list (if i remove the explicit
typing). i
want it to be functionally identical to the
function
Konst Sushenko writes:
| what am i missing?
:
| --g :: State String Char
| g = [ x | x - return 'a' ]
Hi.
The comprehension syntax used to be for monads in general (in Haskell
1.4-ish), but is now (Haskell 98) back to being specific to lists.
Does it help if you use do-notation instead?
On Wed, Feb 14, 2001 at 02:19:39PM -0800, Simon Peyton-Jones wrote:
The most immediate and painful stumbling block in Haskell 98 is that
numeric literals, like 3, turn into (Prelude.fromInt 3), where
"Prelude.fromInt" really means "the fromInt from the standard Prelude"
regardless of whether
On 15-Feb-2001, William Lee Irwin III [EMAIL PROTECTED] wrote:
Some reasonable assumptions:
I disagree about the reasonableness of many of your assumptions ;-)
(1) lists are largely untouchable
I want to be able to write a Prelude that has lists as a strict data
type, rather than a
28 matches
Mail list logo