[Haskell-cafe] How to fix linker errors when creating a package using cabal

2007-08-25 Thread Peter Verswyvelen
I'm trying to make a package of Ben.Lippmeier's very nice ANUPlot graphics library (http://cs.anu.edu.au/people/Ben.Lippmeier) IMHO this would be a great contribution to the Haskell library, it's very clean code for newbies :) I created the following cabal file: name: Plot version: 1.1 license:

Re: [Haskell-cafe] How to fix linker errors when creating a package using cabal

2007-08-25 Thread Malte Milatz
Peter Verswyvelen: > However, when building an example that uses that package, I get a lot of > linker errors (see log below) What options did you use when compiling the example? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.o

[Haskell-cafe] RE: Re: Remember the future

2007-08-25 Thread Benjamin Franksen
Simon Peyton-Jones wrote: > | >From the ghc manual: > | > | --- > | 7.3.3. The recursive do-notation > | ... > > | > | It is unfortunate that the manual does not give the translation rules, or at > | least the translation for the given example. > > Hmm. OK. I've improved the manual with

RE: [Haskell-cafe] How to fix linker errors when creating a package using cabal

2007-08-25 Thread Peter Verswyvelen
Oops, I forget to paste that in. Just GHC --make AnimClock.hs with ANUPlot\src\Demo As the current directory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Malte Milatz Sent: Saturday, August 25, 2007 12:11 PM To: haskell-cafe@haskell.org Subject:

[Haskell-cafe] Re: Haskellnet could not find network-any dependency.

2007-08-25 Thread Benjamin Franksen
Edward Ing wrote: > Hi, > I am trying to install Haskellnet. But the configuration breaks on > dependency of network-any in GHC 6.6. > > I thought network-any was part of Hierarchical libraries? > > If not where do I get it? The generic place for libraries nowadays is hackage: http://hackage.has

Re: [Haskell-cafe] newbie - how to call a Haskell interpreter from C

2007-08-25 Thread Henk-Jan van Tuyl
The easiest way to run Haskell software from a C program is to give the shell command: runhaskell Foo.hs This command is part of the GHC package. A more advanced way is, to link Haskell libraries by means of the foreign function interface (FFI) [1]. There are several tools to support FFI

[Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
How easy would it be to make / would anybody care / has somebody already made ... in Haskell? - Blogging software. (Because there isn't enough of it in the world yet.) - A wiki program. (Ditto.) - A general CMS. - An interactive function plotter. (GNUplot is nice, but it can't plot recursive fu

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Neil Mitchell
Hi > - Blogging software. (Because there isn't enough of it in the world yet.) Hope (google: Haskell Hope) > - A wiki program. (Ditto.) Flippi (google: Haskell Flippi) > - A general CMS. Hope > - An interactive function plotter. (GNUplot is nice, but it can't plot > recursive functions...)

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Neil Mitchell wrote: - A wiki program. (Ditto.) Flippi (google: Haskell Flippi) ...and yet haskell.org uses WikiMedia? (Which is written in something bizzare like Perl...) - A general CMS. Hope Woo! I'll have to go play with this for a while... - An interactive fun

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Neil Mitchell
Hi > > Flippi (google: Haskell Flippi) > > ...and yet haskell.org uses WikiMedia? (Which is written in something > bizzare like Perl...) Yes, but WikiMedia is a result of years of work, Flippi is a lot less. Wikipedia uses WikiMedia - its a tried and proven solution. > >> - A "graphical programm

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Philippa Cowderoy
On Sat, 25 Aug 2007, Andrew Coppin wrote: > Neil Mitchell wrote: > > > > > - A wiki program. (Ditto.) > > > > > > > Flippi (google: Haskell Flippi) > > > > ...and yet haskell.org uses WikiMedia? (Which is written in something > bizzare like Perl...) > Flippi is... rather minimalistic

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Philippa Cowderoy
On Sat, 25 Aug 2007, Neil Mitchell wrote: > Hi > > > > Flippi (google: Haskell Flippi) > > > > ...and yet haskell.org uses WikiMedia? (Which is written in something > > bizzare like Perl...) > > Yes, but WikiMedia is a result of years of work, Flippi is a lot less. The original version was the

RE: [Haskell-cafe] How to fix linker errors when creating a package using cabal

2007-08-25 Thread Peter Verswyvelen
Indeed, adding the non-exposed modules to the other-modules fixed it. Thanks Allan! Cheers, Peter -Original Message- From: Allan Clark [mailto:[EMAIL PROTECTED] Sent: Saturday, August 25, 2007 2:28 PM To: Peter Verswyvelen Subject: Re: [Haskell-cafe] How to fix linker errors when creati

Re: [Haskell-cafe] Ideas

2007-08-25 Thread C.M.Brown
> - A "graphical programming tool". (You add boxes and put in lines, it > constructs a "program" that you can run.) I'm not entirely exactly sure what you mean by this. If you mean one can create programs by creating them visually then perhaps you could consider Vital: http://www.cs.kent.ac.uk/pr

RE: [Haskell-cafe] Ideas

2007-08-25 Thread Peter Verswyvelen
>> - A "graphical programming tool". (You add boxes and put in lines, it >> constructs a "program" that you can run.) > You mean a programming tool with a horrible syntax and user interface? > If you want to remove the joy from programming, just use Ada. For programmers or scientists, I agree.

[Haskell-cafe] Question of a manual computation on Reader Monad.

2007-08-25 Thread Peter Cai
Hi all, In order to improve my understanding of monad, I am trying to do some manual computation on "Reader Monad" but I got some problem. The computation is like this: --instance Monad (Reader e) where --return a = Reader $ \e -> a --(Reader r) >>= f = Reader $ \e -> f (r e) e

Re: [Haskell-cafe] Question of a manual computation on Reader Monad.

2007-08-25 Thread Malte Milatz
Peter Cai: > Hi all, > > In order to improve my understanding of monad, I am trying to do some manual > computation on "Reader Monad" but I got some problem. > > The computation is like this: > > --instance Monad (Reader e) where > --return a = Reader $ \e -> a > --(Reader r) >>=

Re: [Haskell-cafe] Question of a manual computation on Reader Monad.

2007-08-25 Thread Kim-Ee Yeoh
一首诗 wrote: > > runReader (do { b <- Reader $ show; return b } ) -- This is the initial > expression, it should equals "show" > > runReader (Reader $ show >>= \b -> return b) -- remove do notion > I'm not sure that's the right un-do-ization. It so happens that the exponent monad ((->) r) a

Re: [Haskell-cafe] newbie - how to call a Haskell interpreter from C

2007-08-25 Thread Brock Peabody
On 8/25/07, Henk-Jan van Tuyl <[EMAIL PROTECTED]> wrote: > > > The easiest way to run Haskell software from a C program is to give the > shell command: >runhaskell Foo.hs I'm a newbie but not that new :) I really have to be able to interpret the Haskell from within the same process. A more a

Re: [Haskell-cafe] newbie - how to call a Haskell interpreter from C

2007-08-25 Thread Stefan O'Rear
On Sat, Aug 25, 2007 at 12:34:45PM -0400, Brock Peabody wrote: > On 8/25/07, Henk-Jan van Tuyl <[EMAIL PROTECTED]> wrote: > > > > > > The easiest way to run Haskell software from a C program is to give the > > shell command: > >runhaskell Foo.hs > > > I'm a newbie but not that new :) I really

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Bertram Felgenhauer wrote: Hi, You wrote: - An interactive function plotter. (GNUplot is nice, but it can't plot recursive functions...) Actually you can express a lot of those with the ?: operator. Ooo... interesting. I don't recall seeing *that* in the manual! gnuplot> f(x) =

[Haskell-cafe] Parsec is being weird at me

2007-08-25 Thread Andrew Coppin
Anybody want to explain to me why this doesn't work? ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ... lin

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Neil Mitchell wrote: HI Flippi (google: Haskell Flippi) ...and yet haskell.org uses WikiMedia? (Which is written in something bizzare like Perl...) Yes, but WikiMedia is a result of years of work, Flippi is a lot less. Wikipedia uses WikiMedia - its a tried and proven solution

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Philippa Cowderoy wrote: Flippi is... rather minimalistic. And fugly. You can tell it was written by someone who has trouble getting things done! I get the impression it did a certain amount of good as a proof of concept and a reminder that doing things the old-fashioned way still works though.

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Philippa Cowderoy wrote: I have some (very expensive) software called Reaktor. You draw boxes and lines, it does DSP algorithms. You build synthesizers and effects boxes with it. That sounds exactly like PureData - you can also do graphics as well with PureData, the demo I saw was very co

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Brandon S. Allbery KF8NH
On Aug 25, 2007, at 14:43 , Andrew Coppin wrote: Neil Mitchell wrote: HI Flippi (google: Haskell Flippi) ...and yet haskell.org uses WikiMedia? (Which is written in something bizzare like Perl...) Yes, but WikiMedia is a result of years of work, Flippi is a lot less. Wikipedia use

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
C.M.Brown wrote: - A "graphical programming tool". (You add boxes and put in lines, it constructs a "program" that you can run.) I'm not entirely exactly sure what you mean by this. I wasn't especially specific about it, that's true enough. I actually had several different things in min

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Brandon S. Allbery KF8NH wrote: On Aug 25, 2007, at 14:43 , Andrew Coppin wrote: Yes, but WikiMedia is a result of years of work, Flippi is a lot less. Wikipedia uses WikiMedia - its a tried and proven solution. Well, I guess... I just thought, you know, the Tcl wiki is written in Tcl, why

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Iain Lane
> - Blogging software. (Because there isn't enough of it in the world yet.) In addition (because a little competition can't help ;), I'm going to be experimenting with writing a blog engine for my final year project at Uni next year - 2007/08. Hopefully some good will come of it, i.e. something th

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Iain Lane wrote: - Blogging software. (Because there isn't enough of it in the world yet.) In addition (because a little competition can't help ;), I'm going to be experimenting with writing a blog engine for my final year project at Uni next year - 2007/08. Hopefully some good will come o

Re: [Haskell-cafe] Parsec is being weird at me

2007-08-25 Thread Albert Y. C. Lai
Andrew Coppin wrote: Prelude> :m Text.ParserCombinators.Parsec Prelude Text.ParserCombinators.Parsec> parseTest (endBy anyToken (char '#')) "abc#" Loading package parsec-2.0 ... linking ... done. parse error at (line 1, column 1): unexpected "b" expecting "#" I read the doc and determined tha

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Stefan O'Rear
On Sat, Aug 25, 2007 at 07:43:30PM +0100, Andrew Coppin wrote: > Neil Mitchell wrote: >> HI >> >> Flippi (google: Haskell Flippi) >>> ...and yet haskell.org uses WikiMedia? (Which is written in something >>> bizzare like Perl...) >>> >> >> Yes, but WikiMedia is a result of

[Haskell-cafe] Re: Parsec is being weird at me

2007-08-25 Thread ChrisK
Andrew Coppin wrote: > Anybody want to explain to me why this doesn't work? > > ___ ___ _ > / _ \ /\ /\/ __(_) > / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98. > / /_\\/ __ / /___| | http://www.haskell.org/ghc/ > \/\/ /_/\/|_| Type :? for h

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Stefan O'Rear wrote: On Sat, Aug 25, 2007 at 07:43:30PM +0100, Andrew Coppin wrote: Hey, aren't we trying to tell people is a *useful* language that people should learn and use? ;-) Actually, we aren't. You might not have been able to tell, but a core goal of our community is to stay

[Haskell-cafe] Re: Parsec is being weird at me

2007-08-25 Thread Andrew Coppin
ChrisK wrote: Andrew Coppin wrote: Anybody want to explain to me why this doesn't work? ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :?

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Andrew Coppin wrote: C.M.Brown wrote: If you mean one can create programs by creating them visually then perhaps you could consider Vital: http://www.cs.kent.ac.uk/projects/vital/ It's a document-centered implementation of Haskell. Allowing one to display and directly manipulate Haskell data

RE: [Haskell-cafe] Ideas

2007-08-25 Thread Peter Verswyvelen
>> *useful* language that people should learn and use? ;-) >Actually, we aren't. You might not have been able to tell, >but a core goal of our community is to stay small and avoid >success at all costs; our language is not practical, >not designed to be practical, and if it ever becomes practi

Re: [Haskell-cafe] Re: Parsec is being weird at me

2007-08-25 Thread Stefan O'Rear
On Sat, Aug 25, 2007 at 08:18:29PM +0100, Andrew Coppin wrote: > But hang on a minute... > > "many" parses 0 or more occurrances of an item. > > "sepBy" parses 0 or more occurrances of an item, seperated by another item. > > "endBy" parses 0 or more occurrances of an item, terminated by another >

RE: [Haskell-cafe] Ideas

2007-08-25 Thread Peter Verswyvelen
I tried vital, and at first sight it is very nice, but they only support a very limited subset of Haskell, perform no type checking at all, don't support the indent rule, etc... Anyway it is an amazing piece of work. Regarding your question about visual programming, GEM Cutter from the Open Quark

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Peter Verswyvelen wrote: I tried vital, and at first sight it is very nice, but they only support a very limited subset of Haskell, perform no type checking at all, don't support the indent rule, etc... Anyway it is an amazing piece of work. Regarding your question about visual programming, GEM

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Evan Laforge
> Reaktor has a few limitations though. > > 1. It's virtually impossible to debug the thing! (I.e., if your synth > doesn't work... good luck working out why.) > > 2. It lacks looping capabilities. For example, you cannot build a > variable-size convolution block - only a fixed-size one. (If you wa

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Peter Verswyvelen wrote: Well, IMHO the only reasons why Haskell is not a language for the masses are: - No marketing. If a company as big as Microsoft would decide that Haskell is to become the standard language, then it would be so. See, for example, Java... - Ancient IDEs. Can't c

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Andrew Coppin
Evan Laforge wrote: To get this back to haskell, at the time I wondered if a more natural implementation might be possible in haskell, seeing as it was more naturally lazy. Not sure how to implement the behaviours though (which were simply macros around a let of *dynamic-something*). I'm sure p

Re: [Haskell-cafe] Re: Parsec is being weird at me

2007-08-25 Thread Andrew Coppin
Stefan O'Rear wrote: On Sat, Aug 25, 2007 at 08:18:29PM +0100, Andrew Coppin wrote: But hang on a minute... "many" parses 0 or more occurrances of an item. "sepBy" parses 0 or more occurrances of an item, seperated by another item. "endBy" parses 0 or more occurrances of an item, terminate

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Evan Laforge
> Indeed, you can write certain DSP algorithms beautifully in Haskell. > Now, if only it could talk to the audio hardware... (Or just use common > file formats even.) Oh, that's easy. I wrote an FFI interface to portaudio a while back to write a delay-looping type utility in haskell. It was pret

RE: [Haskell-cafe] Ideas

2007-08-25 Thread C.M.Brown
> I tried vital, and at first sight it is very nice, but they only support a > very limited subset of Haskell, perform no type checking at all, don't > support the indent rule, etc... Anyway it is an amazing piece of work. I believe that type-sensitive manipulation was certainly being investigated

Re: [Haskell-cafe] Ideas

2007-08-25 Thread jerzy . karczmarczuk
Evan Laforge writes: Indeed, you can write certain DSP algorithms beautifully in Haskell. Now, if only it could talk to the audio hardware... (Or just use common file formats even.) Oh, that's easy. I wrote an FFI interface to portaudio a while back to write a delay-looping type utility in ha

Re: [Haskell-cafe] Re: Parsec is being weird at me

2007-08-25 Thread Chris Casinghino
The following two messages didn't make it to the list the first time because I sent from the wrong address. oops! Hopefully these answer the question. Message 1: On 8/25/07, Andrew Coppin <[EMAIL PROTECTED]> wrote: > Stefan O'Rear wrote: > > There is one other little bit of documented behavior

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Philippa Cowderoy
On Sat, 25 Aug 2007, Andrew Coppin wrote: > Would be nice if I could build something in Haskell that overcomes these. > OTOH, does Haskell have any way to talk to the audio hardware? > It would definitely be nice if someone wrote a binding to the VST SDK or a wrapper for it. Unfortunately I sus

RE: [Haskell-cafe] Ideas

2007-08-25 Thread Peter Verswyvelen
> What intriged me mostly was how it can display infinite data structures > lazily. I think it's certainly a great tool for teaching some aspects of > functional programming: helping newbies to understand and define data > Structures, say. Definitely! It's really cool stuff. But something like tha

RE: [Haskell-cafe] Ideas

2007-08-25 Thread C.M.Brown
> Definitely! It's really cool stuff. But something like that for real Haskell > (e.g. GHC) would be even better :) I could be an offline downloadable > application. It would be a very nice tool: create postscript (or PDF, or > LaTex, whatever rich text format) documents with Haskell "boxes" inside

[Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Peter Verswyvelen
Game developers are really struggling to get performance out of the Playstation 3 console. This console has a single PowerPC CPU with 6 Cell SPU coprocessors, all running at 3.3GHz. These SPUs have 256KB very high speed local RAM, and data from the 512MB main memory can stream in and out via DMA in

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Radosław Grzanka
> It would be a very cool project to show that Haskell could run on such a > platform, making it easier to take advance of its awesome power J It's funny. But 5 minutes ago I was thinking: did anyone compiled haskell application for Palm (m68k and/or Arm) that runs on Palm OS? I can literally quot

[Haskell-cafe] Text.Xhtml.Strict

2007-08-25 Thread Marco Túlio Gontijo e Silva
Hello there. I don't know if it's off topic, but I don't know where else to ask. I've been using Text.Xhtml.Strict, and I'm wondering why the functions are mostly Html -> Html and not HTML a => a -> Html, or something similar. If they were like this, << and toHtml would be not needed, what would

[Haskell-cafe] :, infix operator, infix constructor, et cetera

2007-08-25 Thread Daniel C. Bastos
There is something called infix constructors and something else called infix operators. I'm guessing that an infix operator is really a function, and an infix constructor I don't know what it is. How would you guys describe them? (*) More questions. I learned how to define (++), and then I wanted

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Jeremy Shaw
At Sun, 26 Aug 2007 00:19:25 +0200, =?UTF-8?Q?Rados=C5=82aw_Grzanka?= wrote: > It's funny. But 5 minutes ago I was thinking: did anyone compiled > haskell application for Palm (m68k and/or Arm) that runs on Palm OS? I have looked into doing this in the past. Historically speaking, the first obsta

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Neil Mitchell
Hi > Another option would be to port the yhi bytecode interpreter to run on > PalmOS. I tried this, but I ran into three problems: > > 1. libgmp dependency This is no longer an issue, we now have a flag to not require libgmp, which makes type Integer = Int > 2. build system requires Python (sc

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Derek Elkins
On Sat, 2007-08-25 at 22:51 +0100, Philippa Cowderoy wrote: > On Sat, 25 Aug 2007, Andrew Coppin wrote: > > > Would be nice if I could build something in Haskell that overcomes these. > > OTOH, does Haskell have any way to talk to the audio hardware? > > > > It would definitely be nice if someon

Re: [Haskell-cafe] Ideas

2007-08-25 Thread Derek Elkins
On Sat, 2007-08-25 at 23:36 +0200, [EMAIL PROTECTED] wrote: > Evan Laforge writes: > > >> Indeed, you can write certain DSP algorithms beautifully in Haskell. > >> Now, if only it could talk to the audio hardware... (Or just use common > >> file formats even.) > > > > Oh, that's easy. I wrote a

[Haskell-cafe] "GHC from source" makes a great hardware test

2007-08-25 Thread Dave Bayer
I recently did the classic "push a shopping cart down the aisle at Fry's" to build a Core 2 Quad computer, with Linux swap and a soft raid array spread across three 750 GB sata hard disks. I had some potential "first build" issues, notably a mishap with the lawn of copper grass that passes for a 7

Re: [Haskell-cafe] "GHC from source" makes a great hardware test

2007-08-25 Thread Stefan O'Rear
On Sat, Aug 25, 2007 at 09:33:25PM -0700, Dave Bayer wrote: > I recently did the classic "push a shopping cart down the aisle at > Fry's" to build a Core 2 Quad computer, with Linux swap and a soft > raid array spread across three 750 GB sata hard disks. I had some > potential "first build" issues,