Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-10-01 Thread Pekka Karjalainen
On 9/30/07, Peter Verswyvelen [EMAIL PROTECTED] wrote: This is of course very easy to do manually, but does a command line tool exist for extracting source code from literate Haskell files? There are a lot of good answers already. You can also use some GHC command line options. Please see:

Re: [Haskell-cafe] Compose

2007-10-01 Thread Conor McBride
Hi folks (For those of you at ICFP, my best regards and humblest apologies! I have unavoidable and troublesome distractions which keep me within the UK, but at quite a high average speed.) On 30 Sep 2007, at 15:58, Felipe Almeida Lessa wrote: On 9/30/07, PR Stanley [EMAIL PROTECTED] wrote:

[Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread PR Stanley
Hi f x = x + x Is the x use to create a pattern in the definition and when f is called it's replaced by a value? What's actually happening here? Thanks, Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread Andrew Coppin
PR Stanley wrote: Hi f x = x + x Is the x use to create a pattern in the definition and when f is called it's replaced by a value? Basically, uh, yeah. If you say f 5, this is basically equivilent to 5 + 5 by the above definition. (I'm sure a huge number of others will chime in on this

Re: [Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread Malte Milatz
PR Stanley: f x = x + x Is the x use to create a pattern in the definition and when f is called it's replaced by a value? Those equation-like definitions are syntactic sugar for lambda abstractions. f could as well be defined as f = \x - x + x. ___

Re: [Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread PR Stanley
f x = x + x Is the x use to create a pattern in the definition and when f is called it's replaced by a value? Those equation-like definitions are syntactic sugar for lambda abstractions. f could as well be defined as f = \x - x + x. Please elaborate

Re: [Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread Dan Weston
If you've never been exposed to lambda calculus, then you're in for a real treat! There is no shortage of tutorials on this. If Greek letters and symbol manipulations are not your thing, take a look at http://worrydream.com/AlligatorEggs/ which describes a game that teaches children about

Re: [Haskell-cafe] Assignment, Substitution or what?

2007-10-01 Thread Brent Yorgey
On 10/1/07, PR Stanley [EMAIL PROTECTED] wrote: f x = x + x Is the x use to create a pattern in the definition and when f is called it's replaced by a value? Those equation-like definitions are syntactic sugar for lambda abstractions. f could as well be defined as f = \x - x + x.

[Haskell-cafe] Installation of GLFW package

2007-10-01 Thread Immanuel Normann
Hello, I have just read the thread about installation of GLUT package started at 9/3/2007 by Ronald Guida. Installation of the GLFW package is very much related to that. However, I haven't found the solution for installing the GLFW successsfully. I have downloaded

[Haskell-cafe] Unfriendly hs-plugins error

2007-10-01 Thread Björn Buckwalter
Dear all, I'm getting a rather unfriendly error when trying to load a plugin with hs-plugins: my_program: Ix{Int}.index: Index (65536) out of range ((0,7)) The exact numbers in the message vary depending on what I'm trying to do. I'm using GHC-6.6.1 on MacOS X. Here are three files that

[Haskell-cafe] Re: Unfriendly hs-plugins error

2007-10-01 Thread Björn Buckwalter
By the way, this was with hs-plugins-1.0-rc1. I appear to be unable to install hs-plugins-0.9.10 now (perhaps because of 1.0-rc1). In case it helps this is the not so pretty output from doing a make check in 1.0rc1: === testing testsuite/conf/simple ... === testing

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-10-01 Thread Deborah Goldsmith
Sorry for the long delay, work has been really busy... On Sep 27, 2007, at 12:25 PM, Aaron Denney wrote: On 2007-09-27, Aaron Denney [EMAIL PROTECTED] wrote: Well, not so much. As Duncan mentioned, it's a matter of what the most common case is. UTF-16 is effectively fixed-width for the

Re: [Haskell-cafe] Unfriendly hs-plugins error

2007-10-01 Thread Brandon S. Allbery KF8NH
On Oct 1, 2007, at 21:59 , Björn Buckwalter wrote: Dear all, I'm getting a rather unfriendly error when trying to load a plugin with hs-plugins: my_program: Ix{Int}.index: Index (65536) out of range ((0,7)) This tends to mean that hs-plugins doesn't understand the format of the .hi

Re: [Haskell-cafe] Unfriendly hs-plugins error

2007-10-01 Thread jeeva suresh
I had a similar problem, I solved it by using the development version of hs-plugins (ie. darcs get --set-scripts-executable http://www.cse.unsw.edu.au/~dons/code/hs-plugins) On 02/10/2007, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On Oct 1, 2007, at 21:59 , Björn Buckwalter wrote: