configure problems

2005-02-28 Thread Frederik Eaton
I'm trying to build a recent cvs checkout of glass.cse.ogi.edu:/cvs/fptools. First, I get the following error: checking for happy... /usr/bin/happy checking for version of happy... 1.14 configure: error: Happy version 1.15 or later is required to compile GHC. But the newest version of happy in

RE: configure problems

2005-02-28 Thread Simon Marlow
On 26 February 2005 03:25, Frederik Eaton wrote: I'm trying to build a recent cvs checkout of glass.cse.ogi.edu:/cvs/fptools. First, I get the following error: checking for happy... /usr/bin/happy checking for version of happy... 1.14 configure: error: Happy version 1.15 or later is

[ ghc-Bugs-1146068 ] Data.Generics type error

2005-02-28 Thread SourceForge.net
Bugs item #1146068, was opened at 2005-02-22 09:11 Message generated for change (Comment added) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1146068group_id=8032 Category: Compiler (Type checker) Group: 6.4 Status: Closed Resolution:

[ ghc-Bugs-1153674 ] option -cpp and having C comments gives wrong linenumbers

2005-02-28 Thread SourceForge.net
Bugs item #1153674, was opened at 2005-02-28 10:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1153674group_id=8032 Category: Compiler (Parser) Group: 6.2.2 Status: Open

Re: 6.4.20050215: panic: lookupVers1 MHashTable HT{d}

2005-02-28 Thread Remi Turk
On Mon, Feb 28, 2005 at 03:01:53AM -, Simon Peyton-Jones wrote: Ah, this one we fixed a few days ago. Works for me with the head. Thanks for your well-boiled-down bug reports; they are a lot faster to fix. Simon Thanks, it's nice to hear that. Though I consider it a fair deal: I'm

[ ghc-Feature Requests-1153029 ] allow hierarchical module names with --make

2005-02-28 Thread SourceForge.net
Feature Requests item #1153029, was opened at 2005-02-27 12:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=358032aid=1153029group_id=8032 Category: None Group: None Status: Open

RE: 6.2.2 x86_64 build failing

2005-02-28 Thread Simon Marlow
On 28 February 2005 05:38, Kip Macy wrote: In a clean tree I configured: ./configure --prefix=/u/kmacy/usr/x86_64 --with-ghc=/u/kmacy/src/ghc/src/ghc-6.2.2-x86_64-x86_64/ghc/compiler/ghc -inplace where the ghc-inplace is unregisterised, points to stage1, and is known to compile Hello World

[ ghc-Feature Requests-1153029 ] allow hierarchical module names with --make

2005-02-28 Thread SourceForge.net
Feature Requests item #1153029, was opened at 2005-02-27 20:24 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=358032aid=1153029group_id=8032 Category: None Group: None Status: Closed Priority: 5

RE: ghc HEAD and tee

2005-02-28 Thread Simon Marlow
On 25 February 2005 15:48, Christian Maeder wrote: we used redirect output of ghc via tee (within a Makefile). With the new ghc this randomly fails now. Does anyone have an explanation for this? ghc omitted args 21 | tee log yields: Skipping Main ( hets.hs, hets.o )

Re: GHC 6.4 release candidates available

2005-02-28 Thread Malcolm Wallace
Simon Peyton-Jones [EMAIL PROTECTED] writes: I think I've fixed this (on the head anyway; simon will merge to branch shortly). Care to try again? Yup, the toplevel rigid type-variable problem seems to have been fixed, thanks. nhc98 now builds as expected with ghc-6.4. BTW, there seems to be

segfault/massive memory use when using Data.Bits.shiftL

2005-02-28 Thread Ganesh Sittampalam
Hi, The following either eats memory until killed or segfaults (I can't pin down a reason for the difference). Tested with GHC 6.2.2 and 6.4.20050212, with various different libgmp3s under various Redhat and Debian platforms, and WinXP. Prelude :m +Data.Bits Prelude Data.Bits

Re: segfault/massive memory use when using Data.Bits.shiftL

2005-02-28 Thread Remi Turk
On Mon, Feb 28, 2005 at 02:55:56PM +, Ganesh Sittampalam wrote: Hi, The following either eats memory until killed or segfaults (I can't pin down a reason for the difference). Tested with GHC 6.2.2 and 6.4.20050212, with various different libgmp3s under various Redhat and Debian

Re: segfault/massive memory use when using Data.Bits.shiftL

2005-02-28 Thread Ganesh Sittampalam
On Mon, 28 Feb 2005, Remi Turk wrote: On Mon, Feb 28, 2005 at 02:55:56PM +, Ganesh Sittampalam wrote: Prelude :m +Data.Bits Prelude Data.Bits 18446658724119492593 `shiftL` (-3586885994363551744) :: Integer and calculating, in your case, 2^3586885994363551744 is not something your

Re: segfault/massive memory use when using Data.Bits.shiftL

2005-02-28 Thread Remi Turk
On Mon, Feb 28, 2005 at 10:59:32PM +, Ganesh Sittampalam wrote: On Mon, 28 Feb 2005, Remi Turk wrote: On Mon, Feb 28, 2005 at 02:55:56PM +, Ganesh Sittampalam wrote: Prelude :m +Data.Bits Prelude Data.Bits 18446658724119492593 `shiftL` (-3586885994363551744) :: Integer

Scrap your boilerplate (but don't scrap them precious comments)

2005-02-28 Thread Benjamin Franksen
Hi, I have been racking my brain over the infamous 'gfoldl' and 'gunfold' combinators. (Yes, I have read the papers). What finally made me understand how they worked was reading the code: first the implementation of the gmap functions (Data/Generics/Basics.hs), then the long and detailed

RE: Scrap your boilerplate (but don't scrap them precious comments)

2005-02-28 Thread Ralf Lammel
That's a very good point. Me too, I would often wish to see some principled code details when entering documentation. For instance what is the point of _explaining_ that inc aliases add 1, why not just show that equation! I agree that gmap?? are a bit of this kind. It is so much easier to explain

Re: Scrap your boilerplate (but don't scrap them precious comments)

2005-02-28 Thread John Meacham
On Mon, Feb 28, 2005 at 05:20:18PM -0800, Ralf Lammel wrote: That's a very good point. Me too, I would often wish to see some principled code details when entering documentation. For instance what is the point of _explaining_ that inc aliases add 1, why not just show that equation! I agree

[Haskell] Type of y f = f . f

2005-02-28 Thread Jim Apple
Is there a type we can give to y f = f . f y id y head y fst are all typeable? Jim Apple ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Type of y f = f . f

2005-02-28 Thread Pedro Vasconcelos
On Mon, 28 Feb 2005 03:50:14 -0500 Jim Apple [EMAIL PROTECTED] wrote: Is there a type we can give to y f = f . f y id y head y fst are all typeable? Using ghci: Prelude let y f = f.f Prelude :t y y :: forall c. (c - c) - c - c So it admits principal type (a-a) - a-a. From this

Re: [Haskell] Type of y f = f . f

2005-02-28 Thread Till Mossakowski
The name y suggests that you want to define the fixpoint combinator. This works as follows: Prelude let y f = f (y f) Prelude :type y y :: forall t. (t - t) - t Prelude y (\fac n - if n == 0 then 1 else n*fac(n-1)) 10 3628800 Prelude Till Pedro Vasconcelos wrote: On Mon, 28 Feb 2005 03:50:14 -0500

[Haskell] Call for Tutorials - ICTAC05

2005-02-28 Thread Bernhard K. Aichernig
Call for Tutorials - ICTAC05 INTERNATIONAL COLLOQUIUM ON THEORETICAL ASPECTS OF COMPUTING Hanoi, Vietnam - 17--21 October, 2005 http://www.iist.unu.edu/ictac05 = BACKGROUND AND OBJECTIVES ICTAC is an International Colloquium on Theoretical Aspects of Computing founded by the

[Haskell] postgresql foreign function call segfaults

2005-02-28 Thread Edwin Eyan Moragas
Hi Group, i'm trying to complete an haskell pgsql interface. all compiles well when using ghc's generated executable but it segfaults when i do a pqexec. -- PGresult *PQexec(PGconn *conn, const char *query); foreign import ccall libpq-fe.h PQexec pqexec::X_PGconn-CString-IO X_PGresult

Re: [Haskell] Type of y f = f . f

2005-02-28 Thread Ben Rudiak-Gould
Pedro Vasconcelos wrote: Jim Apple [EMAIL PROTECTED] wrote: Is there a type we can give to y f = f . f y id y head y fst are all typeable? Using ghci: Prelude let y f = f.f Prelude :t y y :: forall c. (c - c) - c - c So it admits principal type (a-a) - a-a. From this you can see that (y

[Haskell] Building a dynamic loadable Parsec parser

2005-02-28 Thread Adam Turoff
Hi, I've got a little parser written using Parsec that I want to link into some C code. I start by compiling the Haskell sources like so: ghc -ffi -fglasgow-exts -main-is My_Init -c parse.hs When linking parse.o and parse_stub.o against my (additional) glue code, I get the following

Re: [Haskell] Type of y f = f . f

2005-02-28 Thread Jon Fairbairn
On 2005-02-28 at 18:03GMT Ben Rudiak-Gould wrote: Pedro Vasconcelos wrote: Jim Apple [EMAIL PROTECTED] wrote: Is there a type we can give to y f = f . f y id y head y fst are all typeable? Using ghci: Prelude let y f = f.f Prelude :t y y :: forall c. (c - c) -

Re: [Haskell] Building a dynamic loadable Parsec parser

2005-02-28 Thread Donald Bruce Stewart
adam.turoff: Hi, I've got a little parser written using Parsec that I want to link into some C code. I start by compiling the Haskell sources like so: ghc -ffi -fglasgow-exts -main-is My_Init -c parse.hs When linking parse.o and parse_stub.o against my (additional) glue code, I

Re: [Haskell] Proposal: Allow \= for field update in record update syntax

2005-02-28 Thread Benjamin Franksen
On Thursday 24 February 2005 23:27, Keean Schupke wrote: Benjamin Franksen wrote: Well at the moment this would give an error, but remember the list is heterogeneous, so you can just not give the list a type, and simply append the specific function... admitedly this is not as type-safe.

Re: [Haskell] Type of y f = f . f

2005-02-28 Thread David Menendez
Jon Fairbairn writes: On 2005-02-28 at 18:03GMT Ben Rudiak-Gould wrote: Pedro Vasconcelos wrote: Jim Apple [EMAIL PROTECTED] wrote: Is there a type we can give to y f = f . f y id y head y fst are all typeable? Using ghci: Prelude let y f = f.f

[Haskell] Re: Type of y f = f . f

2005-02-28 Thread Jim Apple
Jon Fairbairn wrote: If you allow quantification over higher kinds, you can do something like this: d f = f . f d:: a::*, b::**.(b a a) b (b a) a What's the problem with d :: (forall c . b c - c) - b (b a) - a d f = f . f to which ghci gives the type d :: forall a b. (forall c. b c - c) -

RE: [Haskell-cafe] how to avoid overlapping instance error?

2005-02-28 Thread S. Alexander Jacobson
If you are not using them to prevent overlapping instances, then why require instance decls at all? For example, why does GHC require an instance decl here: instance (Ord x)=ToSet [] x where toSet = Set.fromList But not here: listToSet x = Set.fromList x Or I suppose, one could rephrase

[Haskell-cafe] Numeric vs. relative precedences of infix operators

2005-02-28 Thread Henning Thielemann
Is it widely accepted that the precedence of infix operators is defined by numbers? The numbers look arbitrary to me and it is not possible to introduce infix operators with interim precedences. What about defining relations such as (*) has precedence over (+)? The compiler could construct a

Re: [Haskell-cafe] Numeric vs. relative precedences of infix operators

2005-02-28 Thread karczma
Henning Thielemann writes: Is it widely accepted that the precedence of infix operators is defined by numbers? The numbers look arbitrary to me and it is not possible to introduce infix operators with interim precedences. What about defining relations such as (*) has precedence over (+)? The

[Haskell-cafe] postgresql foreign function call segfaults

2005-02-28 Thread Edwin Eyan Moragas
Hi Group, i'm trying to complete an haskell pgsql interface. all compiles well when using ghc's generated executable but it segfaults when i do a pqexec. -- PGresult *PQexec(PGconn *conn, const char *query); foreign import ccall libpq-fe.h PQexec pqexec::X_PGconn-CString-IO X_PGresult

Re: [Haskell-cafe] Re: Bound threads

2005-02-28 Thread Marcin 'Qrczak' Kowalczyk
Simon Marlow [EMAIL PROTECTED] writes: Is it important which thread executes Haskell code (I bet no) and unsafe foreign calls (I don't know)? If not, couldn't the same OS thread execute code of both threads until a safe foreign call is made? Actually in a bound thread, *all* foreign calls

RE: [Haskell-cafe] how to avoid overlapping instance error?

2005-02-28 Thread Simon Peyton-Jones
| Or I suppose, one could rephrase this question as why not | simplify instance declarations to be: | |instance ToSet where | toSet = Set.fromList | | And let the typechecker take care of figuring out what instance is | being specified here? That might be possible, but Haskell forces

[Haskell-cafe] Browser-like UI

2005-02-28 Thread MaurĂ­cio
Hi, I've seen some options for GUI programming in Haskell libraries page, but what I really would like is to define my user interface using HTML (or, maybe, SVG). What are the options to do that in Haskell? I've read that Gtk2Hs has a mozilla rendering engine, but unfortunatly that won't

Re: [Haskell-cafe] Numeric vs. relative precedences of infix operators

2005-02-28 Thread ajb
G'day all. Quoting [EMAIL PROTECTED]: Widely accepted is a widely accepted relativism... I am also annoyed by the precedences 0,1,2, ...,9, etc. Why not 10, 20, 30,... ?? I _think_ we had this back around Haskell 1.1 (which I never used, but early Gofers also had it). Moreover, operators