[GHC] #1290: ghc runs preprocessor too much

2007-04-26 Thread GHC
#1290: ghc runs preprocessor too much --+- Reporter: guest| Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Driver |

[GHC] #1291: Binary Solaris build fails on Solaris 9

2007-04-26 Thread GHC
#1291: Binary Solaris build fails on Solaris 9 ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component:

[GHC] #1292: -fwarn-monomorphism-restriction should be -Wmonomorphism-restriction

2007-04-26 Thread GHC
#1292: -fwarn-monomorphism-restriction should be -Wmonomorphism-restriction ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone:

[GHC] #1293: building ghc 6.6.1 hangs on linux-x86 at Language/Haskell/Syntax.hs

2007-04-26 Thread GHC
#1293: building ghc 6.6.1 hangs on linux-x86 at Language/Haskell/Syntax.hs ---+ Reporter: mm| Owner: Type: bug | Status: new Priority: normal|

Re: [GHC] #1292: -fwarn-monomorphism-restriction should be -Wmonomorphism-restriction

2007-04-26 Thread GHC
#1292: -fwarn-monomorphism-restriction should be -Wmonomorphism-restriction -+-- Reporter: guest |Owner: Type: bug | Status: closed Priority: normal|Milestone:

[GHC] #1294: ? generates .. lexeme

2007-04-26 Thread GHC
#1294: ? generates .. lexeme ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version:

[GHC] #1295: .bat files not removed

2007-04-26 Thread GHC
#1295: .bat files not removed ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version:

[GHC] #1296: -fwarn-monomorphism-restriction breaks package compilation

2007-04-26 Thread GHC
#1296: -fwarn-monomorphism-restriction breaks package compilation ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone:

[GHC] #1297: No LANGUAGE option for # in symbols

2007-04-26 Thread GHC
#1297: No LANGUAGE option for # in symbols ---+ Reporter: neil | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |

[GHC] #1298: Data.Complex.phase does unnecessary pattern match

2007-04-26 Thread GHC
#1298: Data.Complex.phase does unnecessary pattern match --+- Reporter: guest| Owner: Type: bug | Status: new Priority: normal | Milestone: Component:

[GHC] #1299: sh boot should give a better error message if automake isn't installed

2007-04-26 Thread GHC
#1299: sh boot should give a better error message if automake isn't installed ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: feature request | Status: new Priority:

Re: [GHC] #1256: GHC warns about omitting type signatures; would be more helpful if it supplied inferred type signature

2007-04-26 Thread GHC
#1256: GHC warns about omitting type signatures; would be more helpful if it supplied inferred type signature +--- Reporter: guest|Owner: Type: feature request | Status:

Re: [GHC] #1288: ghci 6.6 foreign import stdcall broken, panic, panic!!!!

2007-04-26 Thread GHC
#1288: ghci 6.6 foreign import stdcall broken, panic, panic +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status:

Re: [GHC] #1294: ? generates .. lexeme

2007-04-26 Thread GHC
#1294: ? generates .. lexeme -+-- Reporter: guest |Owner: Type: bug | Status: closed Priority: normal|Milestone: Component: Compiler | Version:

GHC 6.6 panic from Data.Binary.Builder? reproducible on linux and mac os/x

2007-04-26 Thread S. Alexander Jacobson
How to reproduce: $ curl http://searchpath.org/searchpath/SearchPath.hs SearchPath.hs $ ghc --make SearchPath.hs -o sp $ ./sp -f runghc --sp HAppS.Protocols.HTTP.FileServer --http-port=7000 searchpath will download all the needed modules and calls out to shell to run this: runghc

Re: [GHC] #1246: = operators get compiled worse than ==

2007-04-26 Thread John Meacham
On Mon, Mar 26, 2007 at 09:51:02PM -0700, Stefan O'Rear wrote: On Mon, Mar 26, 2007 at 09:31:41PM -0700, John Meacham wrote: On Mon, Mar 26, 2007 at 09:23:13PM -0700, Stefan O'Rear wrote: On Mon, Mar 26, 2007 at 09:15:35PM -0700, John Meacham wrote: actually, this is not true for the

Re: GHC 6.6 panic from Data.Binary.Builder? reproducible on linux and mac os/x

2007-04-26 Thread S. Alexander Jacobson
I've since modified sp to add a main-is which prevents the panic and replaces it with a complaint about Main e.g. runghc -i.haskell_cache/http_searchpath.org-default.map.cache -main-is HAppS.Protocols.HTTP.FileServer.main

ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread Ian Lynagh
= The (Interactive) Glasgow Haskell Compiler -- version 6.6.1 = The GHC Team is pleased to announce a new patchlevel release of GHC. This release contains a

Re: ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread Bulat Ziganshin
Hello Ian, Thursday, April 26, 2007, 3:22:23 PM, you wrote: The (Interactive) Glasgow Haskell Compiler -- version 6.6.1 can you please include in win32 distro c++ compiler, as it was done before and as it requested by trac ticket http://hackage.haskell.org/trac/ghc/ticket/1024 ? to be

Re: ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread shelarcy
Hello, Bulat, On Thu, 26 Apr 2007 22:07:47 +0900, Bulat Ziganshin [EMAIL PROTECTED] wrote: can you please include in win32 distro c++ compiler, as it was done before and as it requested by trac ticket http://hackage.haskell.org/trac/ghc/ticket/1024 ? This problem is already fixed.

Re[2]: ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread Bulat Ziganshin
Hello shelarcy, Thursday, April 26, 2007, 6:54:40 PM, you wrote: Hello, Bulat, On Thu, 26 Apr 2007 22:07:47 +0900, Bulat Ziganshin [EMAIL PROTECTED] wrote: can you please include in win32 distro c++ compiler, as it was done before and as it requested by trac ticket

ghc configure

2007-04-26 Thread C.M.Brown
Hi, I've noticed that when you run ./configure on a ghc build lot's of repetition occurs. A lot of the time the same checks are being performed for each configure file in the ghc hierarchy. Could it be possible if some of these checks could be done once at a high level and then subsequent

Re: Re[2]: ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread shelarcy
Hello Bulat, I think that builders/distributers use make binary-dist to make binary distribution normally. http://hackage.haskell.org/trac/ghc/wiki/Building/Using#BootstrappingGHC make binary-dist calls prep-bin-dist-mingw to make Windows friendly distribution now.

ghci dynamic linking

2007-04-26 Thread Frederik Eaton
Hello, I am wondering how to link a package with some dynamic libraries in a way that works with ghci. If I run the command LD_PRELOAD=/lib/libgcc_s.so.1:/usr/lib/libstdc++.so.6 ghci -package mypackage then it is successful; I am able to use package mypackage in ghci. But if I omit the

[Haskell] ANNOUNCE: GHC version 6.6.1

2007-04-26 Thread Ian Lynagh
= The (Interactive) Glasgow Haskell Compiler -- version 6.6.1 = The GHC Team is pleased to announce a new patchlevel release of GHC. This release contains a

[Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread phiroc
Hello, what are the advantages of haskell over semi-functional programming languages such as Perl, Common Lisp, etc.? What are the mysterious side effects which are avoided by using Haskell, which everyone talks about? Null pointers? Don't you ever get null pointers in Haskell, including when

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Johannes Waldmann
[EMAIL PROTECTED] wrote: [...] semi-functional programming languages such as Perl [...] now this is an interesting view ... ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] help -- need a random number

2007-04-26 Thread robert bauer
Hi, I need some random numbers. The documentation identifies StdGen, but I can't figure out how to invoke it. The documentation is great in every way, except an actual example that I can essentially cut and paste. Thanks ___ Haskell mailing list

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread phiroc
If this is interesting then please enlighten a poor, ignorant PERL hacker. Quoting Johannes Waldmann [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: [...] semi-functional programming languages such as Perl [...] now this is an interesting view ...

Re: [Haskell] help -- need a random number

2007-04-26 Thread Johannes Waldmann
I need some random numbers. in the IO Monad, hiding the use of a generator do x - randomRIO (0, 1 :: Double) ; print x you can also make the state explicit: do g0 - getStdGen ; let { ( x, g1 ) = randomR ( 0, 1::Double) g0 } ; print x a RandomGen is actually the state object for the

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Joe Thornber
On 26/04/07, Johannes Waldmann [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [...] semi-functional programming languages such as Perl [...] now this is an interesting view ... I seem to remember someone writing a book on functional programming in Perl, which seemed odd to me. - Joe

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Sebastian Sylvan
(note to Haskellers: Yeah, I'm handwaving things here, no need to point out counter-examples to my generalisations!) On 4/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We'll do this one first: What are the mysterious side effects which are avoided by using Haskell, which everyone talks

Re: [Haskell] help -- need a random number

2007-04-26 Thread Marc A. Ziegert
module Dice where import System.Random import System.IO.Unsafe (unsafePerformIO,unsafeInterleaveIO) import Data.List (unfoldr) dice4,dice6,dice8,dice10,dice12,dice20,dice666 :: [Int] dice4 = randomRs (1,4) (read foo::StdGen) dice6 = randomRs (1,6) (mkStdGen 5) dice8 = randomRs (1,8)

Re: [Haskell] help -- need a random number

2007-04-26 Thread Johannes Waldmann
import System.IO.Unsafe (unsafePerformIO,unsafeInterleaveIO) Whoa! I'd be very cautious recommending these for newbies ... ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Haskell Job Opportunity

2007-04-26 Thread S. Alexander Jacobson
HAppS LLC has part-time and full-time positions open for haskell programmers to: * improve the open source haskell codebase at HAppS.org * implement infrastructure to make it work well in Amazon S3/EC2 environments * make http://pass.net reliable enough to be used by live apps * build the

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Rob Hoelz
[EMAIL PROTECTED] wrote: Hello, what are the advantages of haskell over semi-functional programming languages such as Perl, Common Lisp, etc.? What are the mysterious side effects which are avoided by using Haskell, which everyone talks about? Null pointers? Don't you ever get null

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread mike clemow
Phiroc, I'm new to these ideas too--especially since my college math training is non-existent. I found the following wikipedia articles particularly illuminating on the topic of side-effects: http://en.wikipedia.org/wiki/Side_effect_%28computer_science%29 and

RE: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Taillefer, Troy (EXP)
Phiroc, Hi Welcome to the mailing list. Problem with partially functional languages in my opinion is if you can do things the way that your most use i.e. imperative programming you will do it Perl, Python, Lisp, Scheme and etc have features that support functional programming but I would wager

Re: [Haskell] help -- need a random number

2007-04-26 Thread Marc A. Ziegert
that is exact the way, how i had learned about the state monads like IO and Maybe. that was even before i understood the [] monad, folding and using Random; i don't remember when that was... ghc-5.xx age. in my opinion, unsafePerformIO is a good learning tool, as soon as you use it tricky to

Re: [Haskell] GHC

2007-04-26 Thread Robert Daniel Emerson
Dear Helmut, I spoke with Novel a few months ago when I was having problems with the SUSE watcher and associated update capability with the 'old German version of Suse 10.0', they have corrected the problem, but in the long run the old 10.0 will not be officially supported. Their product names

Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Keith Fahlgren
On 4/26/07 10:13 AM, Joe Thornber wrote: On 26/04/07, Johannes Waldmann [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [...] semi-functional programming languages such as Perl [...] now this is an interesting view ... I seem to remember someone writing a book on functional programming

[Haskell] REMINDER: HCA Report (May 2007 edition)

2007-04-26 Thread Andres Loeh
Dear Haskellers, the deadline for the May 2007 edition of the Haskell Communities and Activities Report is only a few days away -- but this is still enough time to make sure that the report contains a section on *your* project, on the interesting stuff that you've been doing; using or affecting

[Haskell] Haskell Weekly News: April 27, 2007

2007-04-26 Thread Donald Bruce Stewart
--- Haskell Weekly News http://sequence.complete.org/hwn/20070427 Issue 61 - April 27, 2007 --- Welcome to issue 61 of HWN, a weekly newsletter

[Haskell-cafe] Multi Line String literals

2007-04-26 Thread Bas van Dijk
Hello, Just for fun I'm trying to define multi line string literals. I have the following code and I'm wondering if it can be improved (understandability, elegance, performance): http://hpaste.org/1582 (look at the second annotation) regards, Bas van Dijk

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Joe Thornber
On 26/04/07, Bas van Dijk [EMAIL PROTECTED] wrote: test = putStrLn $ toIsString $ do I need MultiLine String

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Stefan O'Rear
On Thu, Apr 26, 2007 at 01:43:09PM +0100, Joe Thornber wrote: On 26/04/07, Bas van Dijk [EMAIL PROTECTED] wrote: test = putStrLn $ toIsString $ do I need MultiLine

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Neil Mitchell
Hi How does test = putStr I\n\ \need\n\ \multiline\n\ \string\n\ \literals\n look? Like the cpp will choke and die :) Multiline string literals were one of the motivations for cpphs. Thanks Neil

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Alex Queiroz
Hallo, On 4/26/07, Neil Mitchell [EMAIL PROTECTED] wrote: Like the cpp will choke and die :) Multiline string literals were one of the motivations for cpphs. Does cpphs allow me to include a whole file into a Haskell source file, inserting automatically the string gaps? -- -alex

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Neil Mitchell
Hi Does cpphs allow me to include a whole file into a Haskell source file, inserting automatically the string gaps? No, but Hugs does with Here documents. Thanks Neil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Alex Queiroz
Hallo, On 4/26/07, Neil Mitchell [EMAIL PROTECTED] wrote: No, but Hugs does with Here documents. Unfortunately I'm using GHC but thanks! Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Multi Line String literals

2007-04-26 Thread Matthew Sackman
Alex Queiroz [EMAIL PROTECTED] wrote: On 4/26/07, Neil Mitchell [EMAIL PROTECTED] wrote: Like the cpp will choke and die :) Multiline string literals were one of the motivations for cpphs. Does cpphs allow me to include a whole file into a Haskell source file, inserting automatically

[Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Simon Marlow
Claus Reinke wrote: gcc version 3.4.2 (mingw-special) configure:3288: $? = 0 configure:3295: c:/MinGW/bin/gcc -V 5 gcc.exe: `-V' option must have argument configure:3298: $? = 1 configure:3321: checking for C compiler default output file name configure:3348: c:/MinGW/bin/gccconftest.c 5 ld:

Re: [Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Claus Reinke
I suspect this may be because gcc has managed to pick up the Cygwin ld instead of the mingw one. Monique - what exactly is your PATH? What happens when you say 'ld --version'? 'ld --version' doesn't show differences between mingw/cygwin, does it? and even the mingw ld apparently sets its

[Haskell-cafe] Getting the number of seconds since epoch from System.Time.ClockTime

2007-04-26 Thread Martin Percossi
Hello haskell-cafe, In System.Time, data ClockTime = TOD Integer Integer , where the first integer represents the number of seconds since epoch, and the other represents the number of picoseconds. Is there a way of retrieving the first part? (In Haskell 98, the ClockTime type is abstract).

Re: [Haskell-cafe] Re: Compilling GHC on Vista

2007-04-26 Thread Claus Reinke
and even the mingw ld apparently sets its search_dirs without drive letters: that shouldn't be the problem, though, as the failing part of ./configure was an indirect call via gcc, which seems to set the library prefixes correctly, when calling collect2 (see below). it was just that the error

[Haskell-cafe] Re: [Haskell] Newbie: what are the advantages of Haskell?

2007-04-26 Thread Joel Reymont
The biggest advantage of Haskell to me is that it helps me write better programs in other languages. For one reason or another Haskell never turns out to be my final implementation language my my programs gain in the process. Joel -- http://wagerlabs.com/

[Haskell-cafe] Haskell Job Opportunity

2007-04-26 Thread S. Alexander Jacobson
HAppS LLC has part-time and full-time positions open for haskell programmers to: * improve the open source haskell codebase at HAppS.org * implement infrastructure to make it work well in Amazon S3/EC2 environments * make http://pass.net reliable enough to be used by live apps * build the

[Haskell-cafe] Stack overflow with my Trie implementation

2007-04-26 Thread Pete Kazmier
I've modified my Norvig spelling corrector to use a trie instead of Data.Map in the hopes of improving performance. Plus, this is fun and a great learning exercise for me. Unfortunately, when I load my trie with a large amount of data, I get a stack overflow. It's unclear to me why this is

Re: [Haskell-cafe] Stack overflow with my Trie implementation

2007-04-26 Thread Adrian Hey
Pete Kazmier wrote: I've modified my Norvig spelling corrector to use a trie instead of Data.Map in the hopes of improving performance. Plus, this is fun and a great learning exercise for me. Unfortunately, when I load my trie with a large amount of data, I get a stack overflow. It's unclear

[Haskell-cafe] ANN: London Haskell User Group

2007-04-26 Thread Neil Bartlett
I am delighted to announce the first meeting of the London Haskell User Group on Wednesday 23rd May from 6:30PM. The meeting will be held at City University's main campus in central London, and Simon Peyton Jones will be coming to give a talk. Please see the announcement on the web page

[Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Neil Mitchell
Hi I currently maintain two libraries, TagSoup which defines the Tag data type, and BinaryDefer, which defines the BinaryDefer class. If I wanted to include an instance for BinaryDefer Tag, where would I put it? Putting it in either library introduces an artificial dependency on the other.

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Nicolas Frisby
I've had a similar question, which I think boiled down to a compilation issue. Consider packages A and B that can be defined independently. But, just as Neil pointed out, perhaps A and B could also interact beyond their basic definition. My naive idea is that A would compile the simple

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Dan Weston
Taking a lesson from relational databases, I'd put it in 5-normal form: a separate module importing its two dependencies. Don't forget the 2nd law of thermodynamics: no 4-line file will stay 4 lines long after repeated code iterations. You might as well plan for the inevitable. If it's too

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Neil Mitchell
Hi Dan, Don't forget the 2nd law of thermodynamics: no 4-line file will stay 4 lines long after repeated code iterations. You might as well plan for the inevitable. If this library is for the extra interactions available when using a libary with 2 classes (thats all BinaryDefer is likely to

Re: [Haskell-cafe] Obscure instances for Obscure types

2007-04-26 Thread Robin Green
On Fri, 27 Apr 2007 00:40:33 +0100 Neil Mitchell [EMAIL PROTECTED] wrote: If it's too annoying to wait for that inevitability, try commenting the hell out of it until it has a respectable number of lines. Comments are for people who can't sense what their code does from the indentation

[Haskell-cafe] New HaskODell user groups

2007-04-26 Thread Donald Bruce Stewart
I've created a new wiki page documenting all the new user groups for Haskell that are springing up! http://haskell.org/haskellwiki/User_groups If you're starting a new group, please add it here, and publicise. -- Don P.S. Some obvious user group candidates, in my opinion, would be a

[Haskell-cafe] Haskell Weekly News: April 27, 2007

2007-04-26 Thread Donald Bruce Stewart
--- Haskell Weekly News http://sequence.complete.org/hwn/20070427 Issue 61 - April 27, 2007 --- Welcome to issue 61 of HWN, a weekly newsletter