crash in profiling mode

2002-10-29 Thread Janis Voigtlaender
Hello, I have a problem with profiling using a freshly installed GHC 5.04 under Solaris. With the following program crash.lhs: module Main where test1 = print test1 test2 = {-# SCC test2 #-} print test2 main = do c - readLn if c==1 then test1 else test2 I get the following

RE: crash in profiling mode

2002-10-29 Thread Simon Marlow
I have a problem with profiling using a freshly installed GHC 5.04 under Solaris. With the following program crash.lhs: Please install 5.04.1 instead, I believe this bug was fixed. Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL

problem generating Core with no-implicit-prelude

2002-10-29 Thread Hal Daume III
Hi all, I think there's a problem with the external core generation. Suppose we have the following module: - module Test where data Bool = True | False data Maybe a = Just a | Nothing class Eq a where (==) :: a - a - Bool instance Eq Bool where (==) True True = True (==)

Re: FFI C++

2002-10-29 Thread Alastair Reid
Hi, I am currently trying to create a Haskell interface to a C++ library and cannot get it to work completely. If you want to interface Hugs to C++ code, you have to link Hugs using a C++ compiler so that the Hugs binary contains new, throw, etc. I believe the main thing this changes is that

Re: Optimisation and unsafePerformIO

2002-10-29 Thread Albert Lai
David Sabel [EMAIL PROTECTED] writes: {-# NOINLINE b #-} b x = if even x then unsafePerformIO getChar else bot bot = bot main = do putChar (b 4) putChar (b 6) I am not a compiler implementer (or lawyer, for that matter :) But I propose this guess. First, both even