Hello world fails on Win32

2003-12-28 Thread Gour
Hi! Pls. excuse me for cross-posting - I did not realize that this list is more appropriate for the problem for which I posted a message on users' list. After having problem in building ghc-6.2 from source tarball, I installed ghc-6-2-1.msi build and then tried to compile darcs with it, but,

Re: GHC 6.2 breaks multiline string literals

2003-12-28 Thread John Meacham
On Sun, Dec 28, 2003 at 02:54:52AM +0100, Stefan Reich wrote: Ferenc, thanks for your answer. It doesn't really solve my problem though... 1. Your method doesn't preserve the line-breaks within the resulting string. 2. Surrounding each line with special chars is actually what I want to

GHC Warning Request

2003-12-28 Thread Ashley Yakeley
When -fwarn-unused-imports is switched on, import M() should not issue a warning. In 6.2, it does. The idea is that I only wish to import instance declarations here, and that's the obvious way of making that explicit. I'm using -Werror (new in 6.2, thanks), and most of the time I'm interested

ghc 6.2 build problem (MinGW/MSYS)

2003-12-28 Thread Gour
I'm pretty new with GHC and I have prblem building ghc 6.2 with MinGW compiler in MSYS environment. After running configure --prefix=/mingw ; make make fails with: [snip] copying ./mpn/generic/gmp-mparam.h to gmp-mparam.h gcc -E -mno-cygwin -undef -traditional -I../includes -x c

ghc-6-2-1.msi broken?

2003-12-28 Thread Gour
After having problem in building ghc-6.2 from source tarball, I installed ghc-6-2-1.msi build and then tried to compile darcs with it, but, strangely enough, configure script fails when trying to compile Hello world! program. I tried to compile: bash-2.05b# cat main.hs module Main(main) where

Re: Haskell naming conventions

2003-12-28 Thread Fergus Henderson
On 23-Dec-2003, Sean L. Palmer [EMAIL PROTECTED] wrote: It occurs to me that Haskell would be quite a bit easier for OO and traditional programmers to grasp if Haskell would actually use the correct, or at least more commonly used, names for things. For instance, data Maybe a = Nothing |

Re: Type checking/inference

2003-12-28 Thread s_mazanek
Hi, prelude :t map (foldr filter) map (foldr filter) :: [[a]] - [[a - Bool] - [a]] Two main questions: 1/ How does hugs derive this answer? 2/ What input can I give so that it yields a correct result? I've tried giving it a list of lists but it fails... Try: map (flip (foldr filter)

Re: Type checking/inference

2003-12-28 Thread Glynn Clements
Lee Dixon wrote: I've run into a small problem whilst doing some manual type checking, to see if I could match the results given by hugs prelude :t foldr filter foldr filter :: [a] - [a - Bool] - [a] -- This was fine and was the same as my answer, so I tested it with prelude foldr

Re: Type checking/inference

2003-12-28 Thread Derek Elkins
On Sun, 28 Dec 2003 04:58:12 + Lee Dixon [EMAIL PROTECTED] wrote: Hi, I've run into a small problem whilst doing some manual type checking, to see if I could match the results given by hugs prelude :t foldr filter foldr filter :: [a] - [a - Bool] - [a] -- This was fine and was the