[ ghc-Bugs-1078231 ] GHCi stdin buffering strange

2005-02-08 Thread SourceForge.net
Bugs item #1078231, was opened at 2004-12-03 02:46 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=108032aid=1078231group_id=8032 Category: Compiler Group: None Status: Open Resolution: None Priority: 2

RE: ghc-cvs-snapshot with wxHaskell

2005-02-08 Thread Simon Marlow
On 07 February 2005 19:28, Patrick Scheibe wrote: It seems that there are changes in the OpenGl library during the last month. So I decided to load a really young cvs version of the ghc (ghc-6.5.20050206-src.tar.bz2). The compilation works fine. My Problem is, that I also need the wxHaskell

Re: ghc-cvs-snapshot with wxHaskell

2005-02-08 Thread Patrick Scheibe
Hi, Could you tell us what command line was supposed to generate the Map.d.in or Map.d file? It may be a bug, there were a few changes in the driver recently. Cheers, Simon I hope I can help you. It would be better Daan would have a look, because it is his code and he knows

GHC as a package

2005-02-08 Thread Lennart Kolmodin
Hi! I'm working on an IDE for Haskell, written in Haskell. Currently, I'm looking for a way to parse .hs-files for a module browser and I recall that Simon Marlow was going to release GHC as a package soon. We could also use that package to compile source code without invoking ghc as a separate

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Matthew Walton
pablo daniel rey wrote: hello i'm new to haskell so i'm sorry if this is a stupid question, but i'm having problems with some basic code. the code : data Maybe Dir = Just Dir | Nothing data Dir = Left | Right | Up | Down data Piece = Vertical | Horizontal | CodeA | CodeB flow = [(Horizontal,

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Malcolm Wallace
Matthew Walton [EMAIL PROTECTED] writes: (==) works on types which are members of the Eq typeclass. You can define this instance manually, or, since your type is nice and simple, ^^ you can get Haskell to derive it for you.

Re: [Haskell] help with some basic code that doesn't work

2005-02-08 Thread Karl Hasselström
On 2005-02-07 20:36:55 +, pablo daniel rey wrote: data Dir = Left | Right | Up | Down data Piece = Vertical | Horizontal | CodeA | CodeB the error i get : Instances of (Eq Dir, Eq Piece) required for definition of chgDir You try to compare Dir and Piece values without having told

[Haskell] Evaluating expressions given as String

2005-02-08 Thread Javier García-Vivó Albors
Hello everybody. I'm working on a haskell project in which I need to evaluate haskell expressions that are given in an input File. For instance: A file containing Peter==Peter or 3+2==5 or home in [a-z]*sex[a-z]* (see I need to use regular expressions too) is given as input The file contents

[Haskell] Re: Evaluating expressions given as String

2005-02-08 Thread John Goerzen
On 2005-02-08, Javier García-Vivó Albors [EMAIL PROTECTED] wrote: I'm working on a haskell project in which I need to evaluate haskell expressions that are given in an input File. You may want to look at hs-plugins. Alternatively, Langhage.Haskell.* in fptools may help you do do what you

Re: [Haskell-cafe] help with some code. it doesn't whant to compile.

2005-02-08 Thread Jules Bean
On 7 Feb 2005, at 20:23, pablo daniel rey wrote: hello i'm new to haskell so i'm sorry if this is a stupid question, but i'm having problems with some basic code. the code : data Maybe Dir = Just Dir | Nothing (You don't want this. Maybe already exists as a type in the Prelude, you don't want

RE: [Haskell-cafe] how to name third party libraries?

2005-02-08 Thread Simon Peyton-Jones
Send mail to [EMAIL PROTECTED], saying what's in your libraries, and suggesting names. The process usually converges pretty rapidly. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S. | Alexander Jacobson | Sent: 07 February 2005 22:55 | To:

Re: [Haskell-cafe] How to write (FxF' . delta) AxB -- F A

2005-02-08 Thread Johan Glimming
proj :: (Functor f) = (f:*:f') (a,b) - f a proj (Pair x _) = fmap fst x Yes I think that was what I needed. ;-) It seems I also need fsplit :: (Functor f, Functor f') = (f a, f' b) - (f :*: f') (a,b) for samedata (f:*:f') o = Pair (f o) (f' o) Which takes (FA, F'B) into FxF' (A,B). I am

[Haskell-cafe] Contravariance

2005-02-08 Thread Johan Glimming
Hi I have a problem with contravariance in the bananas in space setting. If you take catamorphism from a function space such as A=A-A to a type such as BxC, then the negative occurrence of X in the functor GXY=X-Y swaps around BxC into B+C. This means that maybe in this particular case