Re: [Haskell-cafe] Derivation of Eq given Ord

2007-08-09 Thread Andreas Marth
I would say that qualifies as a bug because it relays an error from compile time to run time. Andreas - Original Message - From: Dougal Stanton [EMAIL PROTECTED] To: haskell-cafe haskell-cafe@haskell.org Sent: Thursday, August 09, 2007 5:57 PM Subject: [Haskell-cafe] Derivation of Eq

Re: [Haskell] View patterns in GHC: Request for feedback

2007-07-24 Thread Andreas Marth
I find that the suggested view pattern produce quite obfuscated code! I guess it sets the language barrier quite a bit higher. Do you really think a normal progrogrammer understands: insert x s@(has x - Just _) = s or: fib (np 2 - Just n) = fib (n + 1) + fib n or even: fib (np 2 = n) = fib (n + 1)

[Haskell-cafe] Frustrating experience of a wannabe contributor

2007-07-18 Thread Andreas Marth
Today I had 2 hours time and thought I might contribute to the haskell community. The topic I thought I might be able to give some hints is about creating DLLs. So I went to www.haskell.org which redirected me to the wiki www.haskell.org/haskellwiki/Haskell. So I entered DLL into the search to

Re: [Haskell-cafe] Frustrating experience of a wannabe contributor

2007-07-18 Thread Andreas Marth
, in fact I wanted to try to contribute that what I feel I can contribute, but I failed. And I thought I describe my failure so we as a community can learn from it. - Original Message - From: Bulat Ziganshin [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: haskell-cafe@haskell.org Sent

Re: [Haskell-cafe] Frustrating experience of a wannabe contributor

2007-07-18 Thread Andreas Marth
- Original Message - From: Antoine Latter [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Wednesday, July 18, 2007 8:26 PM Subject: Re: [Haskell-cafe] Frustrating experience of a wannabe contributor The closest existing page I could find on the wiki was this one:

Re: [Haskell-cafe] Re: Frustrating experience of a wannabe contributor

2007-07-18 Thread Andreas Marth
Now I learned that gmain has a niche interface that can search the mailing list sort the results. :-) I changed the (read via gmain) into (read search via gmain) for both links at that page. So one easily can see that he can search the archives via gmain. (I didn't know gmain at all, so had no

Re: [Haskell-cafe] Re: Frustrating experience of a wannabe contributor

2007-07-18 Thread Andreas Marth
Thanks for again pointing out that I didn't want another way to get the information, but I have to defend Simon. His first response was a reworking of the wiki page for the haskell mailing lists. What led me to learning about gmain and its search function. So I added the hint that you can use

Re: Re[4]: [Haskell-cafe] In-place modification

2007-07-15 Thread Andreas Marth
If you are so sure that C# will be better than haskell why not prove it at the ICFP (http://www.icfpcontest.org/). That should be as fair as possible with your requests for comparison. It is running next weekend (20th-23rd of July), so you can prove how superior your C# is. If you win, peobably

Re: [Haskell-cafe] Re: Nix for Hackage/Cabal

2007-07-06 Thread Andreas Marth
If that means I have to have cygwin installed to use the installation tools thats not only a show stopper, but against the direction ghc took in the past to become independend of cygwin. - Original Message - From: apfelmus [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Friday, July

Re: [Haskell-cafe] Tools for Haskell and COM

2007-06-28 Thread Andreas Marth
From my point of view it is a real shame that we don't have a reliable one yet! What is with all that mumble of reusable code, interoperability and enhanced stabilty if you can't use/proof it because it is a nightmare to use it in a common project. Where common project means: windows and office

Re: [Haskell-cafe] ghc-pkg list says a package is installed, but ghci won't load its exposed module (HDBC-ODBC)

2007-06-15 Thread Andreas Marth
I didn't see an answer jet so here it goes: If you look closely you will see that HDBC-odbc-1.1.6.2 is installed but module Database.HDBC.ODBC is not found (loaded). The problem lies in the capitalisation. I ran into the same problem with missingH and the package filepath wich registers as

Re: evaluate to lazy?

2006-11-22 Thread Andreas Marth
? Thanks for any comments, Andreas - Original Message - From: Duncan Coutts [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: glasgow-haskell-users@haskell.org Sent: Tuesday, November 21, 2006 1:34 PM Subject: Re: evaluate to lazy? On Tue, 2006-11-21 at 09:53 +0100, Andreas Marth wrote

Difference between errorCalls and userErrors

2006-10-26 Thread Andreas Marth
Hi! In module Control.Exception there are the exception predicates errorCalls and userErrors defined. Is there any difference between them? Which one? Thanks for any explanations, and maybe it should be documented in more detail? Kind regards, Andreas

Data.Array.MArray lost bounds

2006-10-18 Thread Andreas Marth
With ghc-6.6 there is a change in module Data.Array.MArray which now includes a function getBounds :: (MArray a e m, Ix i) = a i e - m (i,i) but it misses the good old bounds [which had type bounds :: (HasBounds a, Ix i) = aie - (i,i)]. What is the rational behind this change? Are MArrays now able

[Haskell] ASCII higher than 127

2006-10-17 Thread Andreas Marth
How was that with Haskell and Unicode??? While up to ghc-6.4.2 the following function worked it now doesn't compile: isSpezGermanChar :: Char - Bool isSpezGermanChar 'ä' = True isSpezGermanChar 'ö' = True isSpezGermanChar 'ü' = True isSpezGermanChar 'Ä' = True isSpezGermanChar 'Ö' = True

Re: [Haskell-cafe] Why am I not allowed to use CStringLen inforeignexport?

2006-09-22 Thread Andreas Marth
usage. Is this needed here? How can it be done? Thanks to everyone who responded, Andreas - Original Message - From: Brian Hulley [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED]; haskell-cafe@haskell.org Sent: Friday, September 15, 2006 10:07 PM Subject: Re: [Haskell-cafe] Why am I

[Haskell-cafe] Haskell DLL crashes Excel

2006-09-22 Thread Andreas Marth
Hi everybody! As you might now already know I try to let VBA call Haskell via a DLL. The function returns a String. Everything works fine now if I call the function only once. If I call it more often Excel crashes soon. Does any body have any idea what is going wrong or how I can find out. (I am

[Haskell] Is there an example how to pass a string to VBA?

2006-09-15 Thread Andreas Marth
Hallo everybody! I'm trying to pass a String to VBA and am totally stuck. Does anyody have a working example how to do this? I am interested in either a plain low level DLL or a COM DLL or anything else if there is something else. I hope someone did this already and can give me a helping hand. A

Re: [Haskell] Is there an example how to pass a string to VBA?

2006-09-15 Thread Andreas Marth
I have just one question here: How did you get hdirect to work? More concrete: Were you able to generate ihc.exe? I'm stuck there. Thanks for your fast reply, Andreas - Original Message - From: Salvador Lucas [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: Haskell@haskell.org

[Haskell-cafe] Why am I not allowed to use CStringLen in foreign export?

2006-09-15 Thread Andreas Marth
Hi! I try to export a Haskell function to VBA. (At the moment without COM.) Because VBA seems to expect a String with length information I tried to return a CStringLen as defined in Foreign.C.String. But if I try to compile it I get an unacceptable argument type in foreign declaration:

Re: [Haskell] How to generate a dll?

2006-09-09 Thread Andreas Marth
Hi! Hi, Andreas! Try adding these lines to your DllMain: if (reason == DLL_PROCESS_DETACH) { shutdownHaskell(); return TRUE; } This worked great. (At least with Excel. I didn't test it with the VB-Project yet.) If I tried to return a String (marshalled to CString)

Re: [Haskell] Re: H/Direct (HaskellDirect) still maintained?

2006-09-08 Thread Andreas Marth
- Original Message - From: Simon Marlow [EMAIL PROTECTED] To: Gracjan Polak [EMAIL PROTECTED] Cc: haskell@haskell.org Sent: Thursday, September 07, 2006 5:46 PM Subject: [Haskell] Re: H/Direct (HaskellDirect) still maintained? ... You might want to look at

[Haskell] How do I get a recent cabal for Windows?

2006-09-08 Thread Andreas Marth
Hallo! I just tried to install cabal-1.1.4 under Windows (Windows 2000 Professional). I downloaded the tar from the cabal page (www.haskell.org/cabal/download.html) unpacked it in a directory did runghc Setup.lhs configure (It didn't find haddock, happy, alex and ccphs but didn't complain), did

Re: [Haskell] How do I get a recent cabal for Windows?

2006-09-08 Thread Andreas Marth
- Original Message - From: Neil Mitchell [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: haskell@haskell.org Sent: Friday, September 08, 2006 12:21 PM Subject: Re: [Haskell] How do I get a recent cabal for Windows? Hi Andreas I found it really easy to install cabal from

Re: [Haskell] How do I get a recent cabal for Windows?

2006-09-08 Thread Andreas Marth
- Original Message - From: Neil Mitchell [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: haskell@haskell.org If I do the setup configure ... setup install in the Cabal directory I get a new Cabal (1.1.5.9.2) but that chrases like the one created with another cabal if used

Re: [Haskell] How do I get a recent cabal for Windows?

2006-09-08 Thread Andreas Marth
Ups. I just discovert that that was with ghc-6.2.1. I will have to check what happens with ghc-6.4.2. Thanks for your help and have a nice weekend, Andreas - Original Message - From: Neil Mitchell [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: haskell@haskell.org Sent: Friday

Re: [Haskell] Re: H/Direct (HaskellDirect) still maintained?

2006-09-08 Thread Andreas Marth
Now that I used a more recent ghc (6.4.2 which has cabal-1.1.4 installed) I did install comlib with it. But I am a bit surprised because it did not generate a ihc. So how do I get a Proxy from an idl-file now? If I look at the files in vsHaskell they state Automatically generated by HaskellDirect

Re: [Haskell] How to generate a dll?

2006-09-07 Thread Andreas Marth
From: Michael Marte [EMAIL PROTECTED] To: Andreas Marth [EMAIL PROTECTED] Cc: haskell@haskell.org Sent: Wednesday, September 06, 2006 6:04 PM Subject: Re: [Haskell] How to generate a dll? Andreas, I am using a DLL generated by ghc 6.4.2 in combination with Visual C++ 2005. Some useful links

[Haskell] H/Direct (HaskellDirect) still maintained?

2006-09-06 Thread Andreas Marth
Hallo! Does anybody know if H/Direct (also known as HaskellDirect) is still maintained? I tried to get it working but although the homepage states The sources compiles out of the box with recent versions of GHC, such as ghc-6.2. I could not compile it on windows. Can anyone give me some hints how

[Haskell] How to generate a dll?

2006-09-05 Thread Andreas Marth
Hallo! I want to make my Haskell program usable from Visual Basic. What is the way to go? (I tried the way the user guide for ghc 6.4.2 describes but the resulting dll was not stable.) While I don't have any clues about language interoperation I guess it is a task that is done many times before.

[Haskell] Network advice needed

2006-03-30 Thread Andreas Marth
Hallo! While I am not a Haskell newbie I am a network newbie and need your advice. A few years ago I coded some business logic in Haskell which is used in an application. The application mainly consists of a GUI which calls the Haskell program. The whole application is installed at the

Size of UArrays

2005-03-30 Thread Andreas Marth
Hallo! I would like to know how big an UArray (100,100) Double is (approximately) in Bytes. And how much heap will the program consume for it. (I mean does the garbage collector need this size, or double the size, or what?) Thanks, Andreas

Biographical Profiling

2005-03-25 Thread Andreas Marth
Hallo! The ghc user guide says that there are 4 states a heap object may be in. Unfortunately in my program there are 5 states (inherent_use, use, drag, lag, void) with inherent_use being the biggest part (many MBs) and the one not mentioned in the users guide. My question is what does it mean?

[Haskell] Profiling strategies

2005-03-25 Thread Andreas Marth
Hallo! Does anybody have some profiling strategies other than from the ghc user guide? Any references, suggestions and so on are very welcome. Thanks, Andreas ___ Haskell mailing list Haskell@haskell.org

Re: [Haskell] GHC: Setting default +RTS options at compile time?

2005-03-18 Thread Andreas Marth
I had the same question quite some time ago and got an answe from Simon Marlow. You may search for that. Or you can use the attached file. Have fun, Andreas PS: You first compile RTSHooks.c and than your other Haskell files plus RTSHooks.o. Eg. ghc --make Main.hs RTSHooks.o - Original

[Haskell] Fail loop ?

2005-01-07 Thread Andreas Marth
Hello! While executing a program of mine I get a message Fail: loop which is not an error which I throw somewhere. So where does it come from? And how can I proceed further to solve the problem? Any hints welcome, Andreas ___ Haskell mailing list

[Haskell] I try to thaw an array of unboxed arrays to the IO monad

2005-01-03 Thread Andreas Marth
Hallo everybody! A few years ago I wrote a program wich contained (among much else) the following: import IOExts (thawIOArray,freezeIOArray) -- had to be replaced, because ghc doesn't find it anymore import Data.Array.Unboxed as UA (UArray,listArray) import

Is it possible to load bindings into ghci

2004-08-25 Thread Andreas Marth
Hi everybody! At the moment it happens that I use an unfinished program with ghci. And each time I start GHCi, I have to introduce the same bindings aka 'cont - readFile myFile' ... Is there a way to define them once in a File and then point GHCi to it? (I need somme of the functions in the

Re: Is it possible to load bindings into ghci

2004-08-25 Thread Andreas Marth
I answer to 3 different mails here, so don' get confused: Simon M. wrote: Like the '.' command in /bin/sh? Yes, we ought to have something like that. I'll get around to it at some point, unless anyone gets there first. I don't know about the '.' command in /bin/sh and I don't have a *nix

Profiling for WinNT missing in ghc-4.08.1

2000-09-06 Thread Andreas Marth
Hallo everybody! I just installed the ghc-4.08.1 but the profiling doesn't work. I expected that because when I checked the Box for Profiling it said 0k is needed. Is this just a bug in the install shield? Could I get the p_hi files from somewhere? Is it a big problem thet You couldn't solve

autoconf while building from ghc-4_08.tar.gz (WinNT with cyg

2000-07-26 Thread Andreas Marth
Hallo again! I just checked that I have all the requested tools (from building guide) with at least the requiered version number. Then I set all the variables mentioned in the user manual. Then I extracted the ghc-4_08.tar.gz to the usual place and went to /fptools/ . Then I ran ./configure

ghc-4.08 on WinNT and cygwinb20

2000-07-25 Thread Andreas Marth
Hallo! I am still trying to build the ghc-4.08 from the standard ghc-4.08-src.tar.gz. After installing autoconf I could make it a bit farer but then make (ghc) complaind that there was not enough space to build. So I added -H96M to GhcHcOpts in the /fptools/mk/build.mk. But now it dies

Addition to Position of p_hi-files for Profiling under Windo

2000-07-06 Thread Andreas Marth
Hi! I just gave up with compiling for profiling because the ld complained: "cannot open -lHSlang_p_imp: No such file or directory". Any solution available? Thanks, Andreas Marth

bug: After changing 'fromInt' to 'fromInteger'

1999-11-22 Thread Andreas Marth
I tried to recompile my projekt with ghc-4.045 for win32-systems and got an error, that "Variable not in scope: 'fromInt' ". Then someone suggested that I use 'fromInteger' instead. But then the 'impossible' happens. Error.hs contains the Massage and Matrice.hs the module. Thanks foe every

What happend to fromInt ?

1999-11-22 Thread Andreas Marth
I just tried the ghc-4.045 for Win32-sytems and got the error "Variable not in scope: 'fromInt' ". The code is something like: import System main = do args - getArgs let arg = case args of [] - error "No argument!" [h] - h _ - error "More then 1argument!" putStr (show (dim1 arg)

maybe ghc-bug ghc-userguide mistake?

1999-09-08 Thread Andreas Marth
Hi ! I got an "fatal error: GetMBlock:misaligned block returned" message wenn executing my program. Because I have no idea what that means,I decided to compile with profiling optin. (I youse a makefile as You describe it in the user - report.) So I changed the HC_OPTS (to: -O -prof -auto-all

compiler-bug

1999-06-07 Thread Andreas Marth
Hello! I got an error compiling my program with ghc-4.02 and ghc-4.03 (-O option) (files error#ghc-4.02-O and error#ghc-4.03-O) I tried compiling with ghc-4.03 without the -O option, but it did'nt help (file error#ghc-4.03) I would be glad if You could give me a hint how to compile it anyway. I