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
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)
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
, 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
- 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:
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
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
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
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
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
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
?
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
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
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
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
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
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
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
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
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:
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)
- 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
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
- 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
- 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
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
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
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
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
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.
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
47 matches
Mail list logo