Re: [Haskell-cafe] Linker problems linking FFI import call in Windows

2008-07-16 Thread Olivier Boudry
On Tue, Jul 15, 2008 at 11:51 PM, PJ Durai [EMAIL PROTECTED] wrote: I am trying to import some functions from a windows DLL. I am getting strange errors. (This used to work with previous versions of GHC. 6.6 I think.). You may have to create an import library for the DLL. I had a similar

Re: [Haskell-cafe] CAL (OpenQuark) and enterprise

2008-07-16 Thread fero
Nice:) Daniil Elovkov wrote: fero wrote: And what if writing new application? Has anybody experience with enterprise application in functional language? Is it really clearer? I can see a advantage in using Scala but it doesn't have some features from Haskell or CAL or requires more

Re: [Haskell-cafe] Mutually recursive modules and google protocol-buffers

2008-07-16 Thread Chris Kuklewicz
Thanks Roberto! Roberto Zunino wrote: Chris Kuklewicz wrote: There is no way to create a A.hs-boot file that has all of (1) Allows A.hs-boot to be compiled without compiling B.hs first (2) Allows B.hs (with a {-# SOURCE #-} pragma) to be compiled after A.hs-boot (3) Allows A.hs to

[Haskell-cafe] Re: Euler 201 performance mystery

2008-07-16 Thread apfelmus
[EMAIL PROTECTED] wrote: Dear Group, I've spend the last few days figuring out the solution to Euler Problem 201 in haskell. I first tried a relatively elegant approach based on Data.Map but the performance was horrible. I never actually arrived at the answer. I then rewrote the same

RE: [Haskell-cafe] Mutually recursive modules and google protocol-buffers

2008-07-16 Thread Sittampalam, Ganesh
Hi, module A(A) where data A deriving Show I think you should use instance Show A rather than deriving Show. All the boot file needs to do is say that the instance exists, not explain how it is constructed. Cheers, Ganesh

[Haskell-cafe] Re: Strange space leak

2008-07-16 Thread apfelmus
Grzegorz Chrupala wrote: split DOC . words . map toLower = (:[]) . words . map toLower Since you converted everything to lowercase, the string DOC will never appear in the text, resulting in a single huge document. Oops, that should have been obvious, sorry for the dumb question.

[Haskell-cafe] win32: haddock: internal Haddock or GHC error?

2008-07-16 Thread Dmitri O.Kondratiev
Using GHC 6.8.2 and haddock 2.0.0.0. in WinXP (SP3) I am trying to follow instructions from How to write a Haskell programhttp://www.haskell.org/haskellwiki/How_to_write_a_Haskell_program#Build_some_haddock_documentation . Everything goes well, until I try to generate html documentation for the

Re: [Haskell-cafe] win32: haddock: internal Haddock or GHC error?

2008-07-16 Thread Neil Mitchell
Hi Dmitri, How did you obtain Haddock 2.0? Did you download it off hackage and install it, using the standard cabal bits? Can you also do runhaskell Setup configure -v, so we can see which Haddock Cabal is attempting to use. Thanks Neil C:\wks\haqrunhaskell Setup.lhs haddock --executables

Re: [Haskell-cafe] win32: haddock: internal Haddock or GHC error?

2008-07-16 Thread Dmitri O.Kondratiev
Neil, Thanks for the quick response! I got haddock from its site ( http://haskell.org/haddock/#Download )using the link that says: Windows: a binary distribution http://haskell.org/haddock/dist/haddock-2.0.0.0-Win32.zip is available, just unzip and go. My configuration: C:\wks\haqrunhaskell

Re: [Haskell-cafe] Re: Strange space leak

2008-07-16 Thread Jacques Carette
apfelmus wrote: Grzegorz Chrupala wrote: split DOC . words . map toLower = (:[]) . words . map toLower Since you converted everything to lowercase, the string DOC will never appear in the text, resulting in a single huge document. Oops, that should have been obvious, sorry for the dumb

[Haskell-cafe] Re: Euler 201 performance mystery

2008-07-16 Thread apfelmus
apfelmus wrote: In other words, we have now calculated the more efficient program euler201 = map snd . filter ((==50) . fst) . subsums $ squares where subsums [] = singleton (0,0) subsums (x:xs) = map (\(n,s) - (n+1,s+x)) (subsums xs) `union` subsums xs I forgot something

Re: [Haskell-cafe] uvector and the stream interface

2008-07-16 Thread stefan kersten
On 14.07.2008, at 20:48, Don Stewart wrote: Yes, we have long been discussing a generic Stream library to which the various sequence structures can be translated to and from. Already it is useful to say, stream bytestrings into uvectors and out to lists. could the Stream interface be made

Re: [Haskell-cafe] Linker problems linking FFI import call in Windows

2008-07-16 Thread PJ Durai
On 7/16/08, Olivier Boudry [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 11:51 PM, PJ Durai [EMAIL PROTECTED] wrote: I am trying to import some functions from a windows DLL. I am getting strange errors. (This used to work with previous versions of GHC. 6.6 I think.). You may have to

Re: [Haskell-cafe] Linker problems linking FFI import call in Windo ws

2008-07-16 Thread Steve Schafer
On Wed, 16 Jul 2008 10:22:46 -0600, you wrote: I do have the import library. It came with the DLL. It links properly when I use CCALL on the haskell import statements. Doesnt link when I use STDCALL. It looks for function name with something like '@4 or @8' tacked on at the end. Not sure what

[Haskell-cafe] Fixed-Point Combinators

2008-07-16 Thread Adrian Neumann
Hello, while studying for a exam I came across this little pearl: Y = (L L L L L L L L L L L L L L L L L L L L L L L L L L L L) where L = λabcdefghijklmnopqstuvwxyzr. (r (t h i s i s a f i x e d p o i n t c o m b i n a t o r)) posted by Cale Gibbard to this list. Now I'm wondering how

Re: [Haskell-cafe] Fixed-Point Combinators

2008-07-16 Thread Bulat Ziganshin
Hello Adrian, Wednesday, July 16, 2008, 11:17:05 PM, you wrote: L = ?abcdefghijklmnopqstuvwxyzr. (r (t h i s i s a f i x e d p o i n t c o m b i n a t o r)) does one finde such awesome ? expressions? Is there some mathemagical background that lets one conjure such beasts? full search? :)

RE: [Haskell-cafe] A type signature inferred by GHCi that is rejected when written explicitly

2008-07-16 Thread Simon Peyton-Jones
| I myselft don't understand why GHCi doesn't accept the type it | infered as an explicit signature ... I've known about this confusing behavior for some time, and the design goal that the compiler should not infer a type that it can't check seems Clearly Right. Stupidly, though, I had not

RE: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-07-16 Thread Simon Peyton-Jones
| Linux Nokia-N810-42-19 2.6.21-omap1 #2 Fri Nov 16 16:24:58 EET 2007 | armv6l unknown | | I would love a working GHC implementation on it, if for nothing else | than how awesome it would be. Whether that means using a C back-end or | native compilation doesn't matter to me so much. | | I might be

[Haskell-cafe] curl installation

2008-07-16 Thread Thomas Fuhrmann
Hello, I'm trying to install the curl package 1.3.2.1 for haskell, I'm using Ubuntu and I've already installed curl-7.18.2. I can't get rid of the configuration error. According to the log entry the curl.h doesn't exist. Shell output: runghc Setup.hs configure Configuring curl-1.3.2.1...

[Haskell-cafe] Haskell Weekly News: Issue 77 - July 16, 2008

2008-07-16 Thread Brent Yorgey
--- Haskell Weekly News http://sequence.complete.org/hwn/20080716 Issue 77 - July 16, 2008 --- Welcome to issue 77 of HWN, a newsletter covering

Re: [Haskell-cafe] curl installation

2008-07-16 Thread Don Stewart
noahaon: Hello, I'm trying to install the curl package 1.3.2.1 for haskell, I'm using Ubuntu and I've already installed curl-7.18.2. I can't get rid of the configuration error. According to the log entry the curl.h doesn't exist. Shell output: runghc Setup.hs configure Configuring

[Haskell-cafe] Re: curl installation

2008-07-16 Thread Thomas Fuhrmann
Marco Túlio Gontijo e Silva marcot at riseup.net writes: Em Qua, 2008-07-16 às 19:50 +, Thomas Fuhrmann escreveu: Hello, Hello. conftest.c:9:23: error: curl/curl.h: No such file or directory

AW: [Haskell-cafe] Fixed-Point Combinators

2008-07-16 Thread Holger Siegel
--- Adrian Neumann [EMAIL PROTECTED] schrieb am Mi, 16.7.2008: Von: Adrian Neumann [EMAIL PROTECTED] Betreff: [Haskell-cafe] Fixed-Point Combinators An: Haskell Cafe mailing list haskell-cafe@haskell.org Datum: Mittwoch, 16. Juli 2008, 21:17 Hello, while studying for a exam I came across

[Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-07-16 Thread Braden Shepherdson
Simon Peyton-Jones wrote: | Linux Nokia-N810-42-19 2.6.21-omap1 #2 Fri Nov 16 16:24:58 EET 2007 | armv6l unknown | | I would love a working GHC implementation on it, if for nothing else | than how awesome it would be. Whether that means using a C back-end or | native compilation doesn't matter

[Haskell-cafe] FFI and struct arguments

2008-07-16 Thread Felipe Lessa
Hi, I tried googling and searching the haskellwiki about this but wasn't lucky enough. My question is: is there a way to send struct arguments to C functions via the FFI or do I need to create a C wrapper? I guess there isn't, and while I can live without it, I'd like to leave no doubt.