Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-10-24 Thread Michael Marte
I am still using ghc 6.4.2 for creating my DLL and, as long as the DLL does not open a file, releasing the DLL works fine. I have not yet tried ghc 6.5. Michael SevenThunders wrote: Michael Marte wrote: Hello *, before filing a bug report, I want others to comment on my problem. Maybe

Program slower with local definitions

2006-09-05 Thread Michael Marte
Hello *, I noticed a five percent speed up by making local definitions global. This is the first version with local definitions: f = some expression based on mySet where mySet = foldl (flip Set.insert) Set.empty myList myList = some constant list Then I moved mySet and myList to

Re: Any way to catch runtime errors in a DLL?

2006-06-15 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: if a runtime error occurs inside a DLL compiled by ghc (like irrefutable pattern match failed or exceptions caused by error), the application that called the DLL function dies. This is ok for development but unacceptable when it happens with a user

Any way to catch runtime errors in a DLL?

2006-06-14 Thread Michael Marte
Hello *, if a runtime error occurs inside a DLL compiled by ghc (like irrefutable pattern match failed or exceptions caused by error), the application that called the DLL function dies. This is ok for development but unacceptable when it happens with a user sitting in front of the display.

Re: Data.Sequence?

2006-06-02 Thread Michael Marte
development for 6.5. Michael Simon Marlow wrote: Michael Marte wrote: I installed ghc-6-4-2.msi on Windows. The same behaviour is exposed by ghc 6.4.1 on Debian Linux. Not here! Can you tell me *exactly* how you encounter the problem? The deprecation took place on July 29th last year

Re: Data.Sequence?

2006-06-01 Thread Michael Marte
Simon, Simon Marlow wrote: Ross Paterson wrote: On Wed, May 31, 2006 at 12:20:02PM +0200, Michael Marte wrote: when importing Data.Queue in 6.4.2, I am told that it is deprecated and that I should use Data.Sequence instead. However, Data.Sequence is not part of the base package

Data.Sequence?

2006-05-31 Thread Michael Marte
Hello *, when importing Data.Queue in 6.4.2, I am told that it is deprecated and that I should use Data.Sequence instead. However, Data.Sequence is not part of the base package - it is there but it is missing from the package.conf file. Moreover, there is no documentation available apart

Re: import prefers module in package over local module

2006-05-04 Thread Michael Marte
Simon Marlow wrote: Deprecation warnings seem to be working fine: $ ghc -c Foo.hs -package text Foo.hs:2:0: Warning: Module `Pretty' is deprecated: This module has moved to Text.PrettyPrint.HughesPJ Also, the documentation for the text package clearly states in several

Re: import prefers module in package over local module

2006-05-03 Thread Michael Marte
Simon Marlow wrote: Tomasz Zielonka wrote: On Wed, May 03, 2006 at 11:53:19AM +0100, Simon Marlow wrote: I'm afraid I don't understand: there's no Pretty module in the standard libraries, only Text.PrettyPrint. There is a Pretty module in the text package. It seems that Michael uses ghc

import prefers module in package over local module

2006-05-02 Thread Michael Marte
Hello *, I am migrating a project from ghc 6.2 to ghc 6.4. This project has a module called Pretty and that's where my problems start. When importing Pretty, ghc does not consider my local definition but the Pretty module from the standard library (which is an alias for

Re: import prefers module in package over local module

2006-05-02 Thread Michael Marte
Simon, I checked the version of ghc I use: It's 6.4.1. Michael Simon Marlow wrote: Michael Marte wrote: I am migrating a project from ghc 6.2 to ghc 6.4. This project has a module called Pretty and that's where my problems start. When importing Pretty, ghc does not consider my local

Re: Still problems building ghc 6.5 with ghc 6.4

2006-03-31 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: Now I get the following error: GHC/PrimopWrappers.hs:565:20: Not in scope: `GHC.Prim.forkOn#' I think this problem may be releated to the other changes I pulled. You probably need to rebuild some stuff. If your stage 1 compiler is up to date

Re: Still problems building ghc 6.5 with ghc 6.4

2006-03-29 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: Yes, I synced my working copy of ghc 6.5 yesterday with darcs pull. Are there any requirements as to which exact version of ghc 6.4 I am supposed to use? I am using the plain 6.4 release but I am able to build the head of the 6.4 branch. BTW. Am I

Re: Still problems building ghc 6.5 with ghc 6.4

2006-03-29 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: I did as you said (make clean; autoreconf; configure; make) but it didn't help; I get the same error as before. Ok, could you try this: $ size ghc/lib/compat/cbits/unicode.o $ size ghc/lib/compat/Compat/Unicode.o there should be some code

Re: Still problems building ghc 6.5 with ghc 6.4

2006-03-29 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: Simon Marlow wrote: Michael Marte wrote: I did as you said (make clean; autoreconf; configure; make) but it didn't help; I get the same error as before. Ok, could you try this: $ size ghc/lib/compat/cbits/unicode.o $ size ghc/lib/compat

Re: GHC 6.4.2 release candidates

2006-03-28 Thread Michael Marte
Simon Marlow wrote: Hi Folks, We're finally in release-candidate mode for 6.4.2. Please grab a snapshot and try it out: http://www.haskell.org/ghc/dist/stable/dist/ (scroll to the bottom for the latest). The available builds are: x86_64-unknown-linux (Fedora Core 5), i386-unknown-linux

Re: Still problems building ghc 6.5 with ghc 6.4

2006-03-27 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: Hello *, when building ghc 6.5 with ghc 6.4 and alex 2.0.1, the build fails as follows: make -C ghc/compiler stage=2 make[2]: Entering directory `/home/marte/fptools/ghc/compiler' ../../ghc/compiler/ghc-inplace -H16m -O -istage2/utils -istage2

Still problems building ghc 6.5 with ghc 6.4

2006-03-26 Thread Michael Marte
Hello *, when building ghc 6.5 with ghc 6.4 and alex 2.0.1, the build fails as follows: make -C ghc/compiler stage=2 make[2]: Entering directory `/home/marte/fptools/ghc/compiler' ../../ghc/compiler/ghc-inplace -H16m -O -istage2/utils -istage2/basicTypes -istage2/types -istage2/hsSyn

Re: 6.4.2 release plans

2006-03-15 Thread Michael Marte
Simon Marlow wrote: Hi Folks, This is a heads up for the forthcoming 6.4.2 release. Our rough timescale is to go into release candidate testing in about a week, and have two weeks of release candidates before the final release. Here are the things we know about and plan to fix before the

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-09 Thread Michael Marte
Simon Marlow wrote: Michael Marte wrote: Lennart Augustsson wrote: I'm not implying anything, except that I've plugged the space leak of 256M every time a DLL is loadedunloaded. -- Lennart Michael Marte wrote: Lennart, do you imply that you have fixed the problem causing

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-08 Thread Michael Marte
Lennart Augustsson wrote: I'm not implying anything, except that I've plugged the space leak of 256M every time a DLL is loadedunloaded. -- Lennart Michael Marte wrote: Lennart, do you imply that you have fixed the problem causing the crashes? May I safely assume that DLLs produced

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Cyril, - How to generate an import library at all? Section 11.5.1 of the ghc manual says that the --mk-dll option will cause ghc to create such a library, but ghc 6.4.1 does not do this, at least not on Windows. Or did you use the Microsoft lib.exe? (lib.exe /def Foo.def generates an import

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Lennart, do you imply that you have fixed the problem causing the crashes? May I safely assume that DLLs produced by ghc 6.4.2 will not crash upon being freed? I played around a little bit more and found two configurations that do not crash, at least not when freeing the DLL in the course of

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-03 Thread Michael Marte
Cyril, I know the Haskell Wiki page you pointed to; it does not answer my specific questions. The decision which compiler to use is not up to me and, as the Wiki page points out, there is no other way to use Haskell modules from within a Visual Studio C++ compiled application than via a

GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-01 Thread Michael Marte
Hello *, before filing a bug report, I want others to comment on my problem. Maybe it's my fault, not ghc's. I wrapped up some Haskell modules in a Win32 DLL. Loading the DLL dynamically (with LoadLibrary) works fine. However, whether I actually use the library or not, the program (an

Building Win32 DLLs: Manual is not up-to-date

2006-02-27 Thread Michael Marte
Hello *, I am trying to turn a prototype written in Haskell into something I can call from a Visual Studio C++ 6.0 program. (The prototype is so clean and fast that there is no point in recoding everything.) So I followed the instructions in section 11.5 of the ghc manual (Building and using

RE: Problems with 6.x compilers

2005-11-23 Thread Michael Marte
Simon, On Wed, 23 Nov 2005, Simon Marlow wrote: On 22 November 2005 17:18, Michael Marte wrote: I am having some annoying problems with the 6.x compilers: 6.4 and 6.4.1: When repeating a build (with ghc --make) all modules are rebuild even if nothing has changed. With earlier

Problems with 6.x compilers

2005-11-22 Thread Michael Marte
Hello, I am having some annoying problems with the 6.x compilers: 6.4 and 6.4.1: When repeating a build (with ghc --make) all modules are rebuild even if nothing has changed. With earlier compilers, only linking takes place in this setting. Can I change this behaviour? I cannot

ghc-5.02.2 cannot parse string gaps

2002-02-18 Thread Michael Marte
Hello *, Section 2.6. of the Haskell report says: A string may include a gap---two backslants enclosing white characters---which is ignored. This allows one to write long strings on more than one line by writing a backslant at the end of one line and at the start of the next. For example, Here

qforeign-0.65: Bzip2: decompress hangs if data ends prematurely

2001-10-25 Thread Michael Marte
Hello *, I found that decompress hangs if data ends prematurely, i.e. do content - readFile fp doSomething (Bzip2.decompress content) does not terminate in this case. Data that is corrupt in some other way (for example, decompressing a file that has not been generated

Re: qforeign-0.65: Bzip2: problems with [Word8]

2001-10-17 Thread Michael Marte
On Tue, 16 Oct 2001, Ashley Yakeley wrote: At 2001-10-16 11:12, Michael Marte wrote: But I need String - String! (Reading from a file, decompressing, and feeding it to the XML parser.) How can I do this? The reading from a file part is arguably a misdesign in the standard libraries

RE: Problems with libgmp

2000-11-15 Thread Michael Marte
Hello Simon, So, I can't quite work out what went wrong in your case. If the build didn't detect GMP 2, then it should have just used the one in the tree. Obviously, when linking, it did not use the one in the tree :-( Conclusion: The Linux linker does not behave like other linkers or there

Problems with libgmp

2000-11-14 Thread Michael Marte
distribution? Thank you, Michael Marte ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users