inconsistent GHC building documentaion

2004-02-24 Thread Andre W B Furtado
Hi, In the "Building the Glasgow Functional Programming Tools Suite", chapter 12, Notes for building under Windows (http://www.haskell.org/ghc/docs/6.2/html/building/winbuild.html), it is said: "Install an executable Happy, from http://www.haskell.org/happy";. The latest version of happy in its w

problems building GHC from source in Windows

2004-02-20 Thread Andre W B Furtado
I was trying to build GHC in my Windows XP, using Cygwin, following the steps in the building guide. I'm stuck in the following error when executing "make" in fptools: creating libgmp.la (cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la) make[6]: Leaving directory `/cygdrive/c/haskell/c

deprecated non-standard syntax

2003-04-05 Thread Andre W B Furtado
The following line: foreign import shutdownHaskellAndExit :: Int -> IO () causes a compiler warning: foreign declaration uses deprecated non-standard syntax Which is the correct way to use a foreign declaration? Thanks, -- Andre ___ Glasgow-haskell-u

register error

2002-04-11 Thread Andre W B Furtado
While trying to install GHC-5.02.3 (win32 release) in my computer (Windows 98), I got the following error message: Error 1406: Could not write value _MainFeature to key HKEY_LOCAL_MACHINES\Software\Microsoft\Windows\CurrentVersion\Installer\Feat ures\8C655693FA0801D4E87FA1CA60C4AAE1 Verify that y

strip effect

2002-02-22 Thread Andre W B Furtado
What is the effect of using the "strip" command with the files generated by ghc (besides reducing the file size)? -- Andre ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

unIO vs. unsafePerformIO

2002-01-31 Thread Andre W B Furtado
What's the difference between unIO and unsafePerformIO? And why is the former "safe"? (I would like to apply the same questions to unsafeIOToST and ioToST) Thanks, -- Andre ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.or

Re: Strange fatal error

2001-11-18 Thread Andre W B Furtado
MessageI installed GHC-5.02.1 and now this problem doesn't happen anymore. -- Andre - Original Message - From: Julian Seward (Intl Vendor) To: Andre W B Furtado ; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 5:39 PM Subject: RE: Strange fatal error We

Re: profiling problem

2001-11-17 Thread Andre W B Furtado
> Turn down the context switching time and/or the delta between > profiling samples, e.g., to get the max amount of data, do > >prog +RTS -h -C0 -i0 When I did this, the size of the .ps file increased, but I'm still getting an empty graph... Can anyone compile the following simple program wit

GHC-5.02(.1) InstallShield for Windows

2001-11-17 Thread Andre W B Furtado
I just would like to report that, if you have GHC-5.02 installed and want to install GHC-5.02.1 (under Windows), you'll need to uninstall GHC-5.02 first, otherwise the InstallShield for GHC-5.02.1 won't work as expected. Is this a bug?   -- Andre

Strange fatal error

2001-11-13 Thread Andre W B Furtado
Can anyone explain me the following error?   fatal error: scavenge: unimplemented/strange closure type 0 @ 08C03FD0   (this happened with a program that reads and do some manipulations in a 3MB bitmap file, using HOpenGL-1.01 and GHC-5.02 under Windows 98 + Cygwin)   Thanks, -- Andre

Re: profiling behavior

2001-11-13 Thread Andre W B Furtado
> > If module A imports B, and if B was compiled without the > > profiling options > > (but A was), is the final program expected to abort (illegal > > operation or > > something like that)? If it is, why? > > You must compile (and link) the whole program with -prof, because that > option changes

profiling behavior

2001-11-13 Thread Andre W B Furtado
If module A imports B, and if B was compiled without the profiling options (but A was), is the final program expected to abort (illegal operation or something like that)? If it is, why? -- Andre ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Broken link

2001-11-11 Thread Andre W B Furtado
The link to "The Graph Visualisation Tool daVinci", in GHC profiling documentation (http://www.haskell.org/ghc/docs/latest/set/prof-xml-tool.html), seems to be broken. I think the link should point to http://www.informatik.uni-bremen.de/daVinci/ -- Andre

Re: problem definind a function

2001-10-30 Thread Andre W B Furtado
The following code works... = \x y -> (x+y - length [1..(gcd x y)] >= round (((fromIntegral x)+1)/2) ) -- Andre > hello, > > Does anybody know why it is not possible to define the folowing function > in ghc? > > = \x y -> (x+y - length [1..(gcd x y)] >= round ((x+1)/2)) ) > > The mess

Profiling in GHC-4.08.1

2001-10-24 Thread Andre W B Furtado
I was trying to compile a .hs file with the profiling option enabled (-prof -auto-all) but I got an error message: /usr/bin/ld: cannot find -lHSstd_p_imp collect2: ld returned 1 exit status Does anyone know what is this "-lHSstd_p_imp"? I am using GHC-4.08.1 (with Cygwin) under a Windows 98 plat

Unistall warning... again!

2001-10-23 Thread Andre W B Furtado
Now things really got worse... when I try to use GHC-4.08.1, I got the following message: ghc: permission denied ghc: not found make[1]: *** [depend] Error 127 How can I use the old GHC-4.08.1 back again? I have some APIs that still need it... Thanks, -- Andre

Uninstall warning...

2001-10-23 Thread Andre W B Furtado
I had GHC-4.08.1 installed in my computer (which runs under a Windows98 platform), and then I decided to install GHC-5.00.2 (this was its latest version at that time). It is said that GHC-5.00.2 can co-exist with other versions of GHC under a Windows platform, because it does not use cygwin anymor

Re: Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
(I think so...) why is the C program so much faster than it? Thanks again, -- Andre - Original Message - From: Albert Lai <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 9:42 PM Subject: Re: Working character by character in Haskell

Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
I'm trying to create a fast program in Haskell that reads the content of a file, do some stuff with its characters (one by one) an then save the final result (the modified characters) in another file. The fastest program I've developed so far is: main :: IO () main = do bmFile <- openFileEx "in.

Re: hGetContents bug?

2001-10-11 Thread Andre W B Furtado
> > I'll get a strange result if the file contains the character 1A-hexadecimal > > (or 26-decimal): all characters beyond this point won't be printed on the > > screen. > > I think this is correct behaviour for a text file under > Windows/DOS... you should open the file as binary instead. > When

hGetContents bug?

2001-10-10 Thread Andre W B Furtado
If I open a file using "openFile" from the IO module (x <- openFile "foo.txt" ReadMode) and convert it to a String via hGetContents (y <- hGetContents x) and finally try to print the file on the screen (putStrLn y) I'll get a strange result if the file contains the character 1A-hexadecimal (

Please help :)

2000-06-06 Thread Andre W B Furtado
Hi out there. I would really appreciate if anyone can tell me if there exists any haskell/hugs library that can PLAY midi files during the execution of a program. Unfortunately, the FRAN library is limitated to wav files... Please reply to [EMAIL PROTECTED].   Thanks a lot. Andre W B