Re[2]: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-06 Thread Bulat Ziganshin
Hello Andrew, Sunday, December 6, 2009, 1:09:18 AM, you wrote: Maybe once I get hired by some financial modelling consultants and get paid shedloads of money to write Haskell all day, I'll be able to afford a Mac. But until then... with such attitude you will never be hired by financial

[Haskell-cafe] Re: universal binary version of Haskell Platform?

2009-12-06 Thread Heinrich Apfelmus
Benjamin L.Russell wrote: Ah, that's too bad. That means that I won't be able to invoke GHC outside of the Terminal application by default, and that even if I create a Darwin shell script and alias to invoke it from Aqua, the icon for that shell script will only be generic by default. I'd

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-06 Thread Andrew Coppin
Bulat Ziganshin wrote: Hello Andrew, Sunday, December 6, 2009, 1:09:18 AM, you wrote: Maybe once I get hired by some financial modelling consultants and get paid shedloads of money to write Haskell all day, I'll be able to afford a Mac. But until then... with such attitude you will

Re: [Haskell-cafe] binding to C libraries on Windows was Low Level Audio - Writing bytes to the sound card?

2009-12-06 Thread Andrew Coppin
john lask wrote: I think there are some misapprehensions here:- Many haskell packages binding to c libraries will compile with ghc without problems on windows - without cygwin, without mingw/msys system. OK, well I haven't tried building every C binding on all of Hackage, just a few of them.

Re: [Haskell-cafe] Re: binding to C libraries on Windoww

2009-12-06 Thread Andrew Coppin
Stephen Tetley wrote: Hi John Fair points - but aren't you always going to 'need' at least MinGW? (for some degree of 'need' of course, I use it quite a bit though prefer Cygwin, I suppose Andrew C. would care not to use either). I guess there's a difference in culture here. On Unix, it

Re: [Haskell-cafe] What is the rank of a polymorphic type?

2009-12-06 Thread Dan Doel
Apologies for the double-reply... Your mail prompted me to finally get around to adding a mono/polytype system to an interpreter I've been working on for pure type systems, to see what a GHC-alike type system would look like. Here's what I came up with. Constants are: *m, []m, *p and []p

Re: [Haskell-cafe] Re: binding to C libraries on Windoww

2009-12-06 Thread Stephen Tetley
Hi Andrew 2009/12/6 Andrew Coppin andrewcop...@btinternet.com: On Windows, it is usual to distribute everything as compiled binaries. (Indeed, for most commercial software, the sources simply aren't available at all.) And users get a binary program and binary DLLs or whatever. Developers

[Haskell-cafe] Re: binding to C libraries on Windoww

2009-12-06 Thread Maurí­cio CA
I guess there's a difference in culture here. On Unix, it is usual to distribute programs as source, and build from source. I see more than a cultural issue here. Suppose you write bindings to somelib-1.0.2, and release it with somelib-1.0.2. Then, somelib-1.0.3 is released to solve a

Re: [Haskell-cafe] Re: Optimizing Parsec 3 -- was: Wiki software?

2009-12-06 Thread Antoine Latter
On Fri, Dec 4, 2009 at 7:47 PM, Paulo Tanimoto tanim...@arizona.edu wrote: Great!  Antoine, other tests we should do?  Derek, I apologize if you're already following this, but can you give us your opinion? Paulo Well, the more eyes and test cases we can get on the new code the better. I'd

Re: Re[2]: [Haskell-cafe] HP + Gtk2hs?

2009-12-06 Thread Jeremy O'Donoghue
Hi Andrew, On 5 Dec 2009, at 16:15, Bulat Ziganshin wrote: Saturday, December 5, 2009, 6:40:23 PM, you wrote: Gtk2hs is currently the *only* GUI binding that actually works on Windows. i thought that wx and even qt are in rather good shape now Thanks for the vote, Bulat. wxHaskell

[Haskell-cafe] Re: [Haskell] ANN: readline-statevar-1.0.1.0

2009-12-06 Thread Jochem Berndsen
nerds ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: [Haskell] ANN: readline-statevar-1.0.1.0

2009-12-06 Thread Jochem Berndsen
Jochem Berndsen wrote: nerds This was a friend of mine trying to be funny. Apologies, Jochem -- Jochem Berndsen | joc...@functor.nl | joc...@牛在田里.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Haskell-Newbie and Char-Function

2009-12-06 Thread Chaddaï Fouché
On Sat, Dec 5, 2009 at 10:02 PM, ??? ?? m...@rkit.pp.ru wrote: fct a n = (snd $ break (==a) ['a'..'z']) !! n Not bad but you forgot that it might need to wrap around, besides break isn't really the best function to use here since we don't need the first part of the pair : shift n ch =

[Haskell-cafe] Re: binding to C libraries on Windoww

2009-12-06 Thread Jeffrey Scofield
Andrew Coppin andrewcop...@btinternet.com writes: I guess there's a difference in culture here. On Unix, it is usual to distribute programs as source, and build from source. (I guess in part because each one of the 12,657,234 different Unix variants is slightly different, and the program

Re: [Haskell-cafe] ANNOUNCE: error-message

2009-12-06 Thread Brent Yorgey
On Sat, Dec 05, 2009 at 02:13:10PM -0800, Gregory Crosswhite wrote: The problem comes from the fact that = takes a *function* as its second argument, and so if the first argument is an error then we can't evaluate the second argument in order to see if it has an error as well. Hmm, that's

[Haskell-cafe] Re: Re: ANNOUNCE: Blueprint 0.1 -- PREVIEW

2009-12-06 Thread Ben Franksen
Gregory Crosswhite wrote: On Dec 4, 2009, at 11:02 AM, Ben Franksen wrote: Gregory Crosswhite wrote: I have posted Blueprint to Hackage so that people can see what I have done and possibly play with it. Very interesting, this. However, I could not build it. I get [...] At the moment you need

[Haskell-cafe] diff implementation in haskell

2009-12-06 Thread Victor Nazarov
Are there pure haskell implementations of diff and diff3 algorithms. Like: data Diff a = Deleted [a] | Common [a] | Added [a] diff :: Eq a = [a] - [a] - [Diff a] diff3 :: Eq a = [a] - [a] - [a] - [a] or smth more general like: class Diff a where type Difference a diff :: a - a -

Re: [Haskell-cafe] diff implementation in haskell

2009-12-06 Thread Don Stewart
asviraspossible: Are there pure haskell implementations of diff and diff3 algorithms. Like: data Diff a = Deleted [a] | Common [a] | Added [a] diff :: Eq a = [a] - [a] - [Diff a] diff3 :: Eq a = [a] - [a] - [a] - [a] There's at least one on Hackage:

Re: [Haskell-cafe] Do you need Windows USB in Haskell?

2009-12-06 Thread Paulo Tanimoto
Hi Mauricio, 2009/12/5 Maurí­cio CA mauricio.antu...@gmail.com: Problem is: I don't have a Windows machine where I could test this. So, if you need USB in windows, please keep in touch. I wouldn't ask you to write any code, but I need to know what builds and what doesn't. I don't need usb

[Haskell-cafe] Insert a laziness break into strict ST

2009-12-06 Thread Henning Thielemann
I have lot of ST actions that shall be bound strictly (they write to a buffer), but somewhere between these actions I like to have a laziness break. I thought I could do this by temporarily switching to Lazy.ST, but this does not work. It follows a simplified example Prelude :module

Re: [Haskell-cafe] ANNOUNCE: error-message

2009-12-06 Thread Ross Paterson
On Sun, Dec 06, 2009 at 03:50:55PM -0500, Brent Yorgey wrote: So what we have here, it seems, is a type with at least two reasonable Applicative instances, one of which does *not* correspond to a Monad instance. My argument is that it is very strange (I might even go so far as to call it a

[Haskell-cafe] ANNOUNCE: PortAudio Windows Tutorial and Binaries

2009-12-06 Thread M Xyz
I got a lot of great help this weekend from Haskell-Cafe, thanks. Now that I have portaudio up and running I put up a tutorial and a 103 kb download of all the windows binaries and files. I hope this helps people exploring digital audio with Haskell.

Re: [Haskell-cafe] Re: [Haskell] ANN: readline-statevar-1.0.1.0

2009-12-06 Thread Ivan Miljenovic
2009/12/7 Jochem Berndsen joc...@functor.nl: Jochem Berndsen wrote: nerds This was a friend of mine trying to be funny. You allow your friends (and what kind of a friend does this anyway) access to your email? -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com

Re: [Haskell-cafe] Re: [Haskell] ANN: readline-statevar-1.0.1.0

2009-12-06 Thread Felipe Lessa
On Mon, Dec 07, 2009 at 10:31:01AM +1000, Ivan Miljenovic wrote: You allow your friends (and what kind of a friend does this anyway) access to your email? Accessing one's computer when the owner goes to the bathroom is not unheard of here. However people usually avoid sending these messages to

[Haskell-cafe] Is anyone reading Pattern Calculus by Barry Jay?

2009-12-06 Thread Duane Johnson
I just bought a copy of Pattern Calculus [1] by Barry Jay and I would like to discuss the lambda- and pattern-calculus with anyone who is interested. Is there anyone else here who is reading the book and would like to discuss here (if it is appropriate) or take the discussion elsewhere?

Re: [Haskell-cafe] Insert a laziness break into strict ST

2009-12-06 Thread Antoine Latter
On Sun, Dec 6, 2009 at 5:46 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: I have lot of ST actions that shall be bound strictly (they write to a buffer), but somewhere between these actions I like to have a laziness break. I thought I could do this by temporarily switching to

[Haskell-cafe] Hayoo and Hoogle (beginner question)

2009-12-06 Thread drostin77
Hello Hopefully Helpful Haskell Community! (I really wanted that to be alliteration... couldn't come up with an h word for community) I've just started learning Haskell (working my way through Real World Haskell and really liking it)! I have started to appreciate that there are a lot of

Re: [Haskell-cafe] Haskell-Newbie and Char-Function

2009-12-06 Thread Richard O'Keefe
On Dec 6, 2009, at 4:42 AM, MeAdAstra wrote: I only started learning Haskell some days ago. Maybe one of you can give me a hint on how to implement a function that needs a character in the range (a,b,...z) and an integer number k and returns the k-next neighbor of the character? For

[Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-06 Thread Ben Franksen
Michael Snoyman wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote: I think there are plenty of examples like web servers. A text editor with plugins? I don't want to lose three hours worth of work

[Haskell-cafe] OpenCL target for DPH?

2009-12-06 Thread Marcus G. Daniels
Hi, I'm wondering if anyone has looked at OpenCL as target for Data Parallel Haskell? Specifically, having Haskell generate CL kernels, i.e. SIMD vector type aware C language backend, as opposed to just a Haskell language binding. Thanks, Marcus ___

Re: [Haskell-cafe] What is the rank of a polymorphic type?

2009-12-06 Thread David Menendez
On Sun, Dec 6, 2009 at 8:39 AM, Dan Doel dan.d...@gmail.com wrote: Apologies for the double-reply... Your mail prompted me to finally get around to adding a mono/polytype system to an interpreter I've been working on for pure type systems, to see what a GHC-alike type system would look like.

[Haskell-cafe] ANNOUNCE: new installment of failure framework

2009-12-06 Thread Michael Snoyman
We'd like to announce the next installment of the Failure Framework. Based on feedback, our main goals in this release is to reduce the number of external dependencies and avoid complications with monad transformer libraries at the core of the framework. We have made the following changes: *

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-06 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 5:30 AM, Ben Franksen ben.frank...@online.de wrote: Michael Snoyman wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote: I think there are plenty of examples like web servers. A

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-06 Thread Alexander Dunlap
On Sat, Dec 5, 2009 at 3:00 PM, Michael Snoyman mich...@snoyman.com wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote: I think there are plenty of examples like web servers. A text editor with plugins?

Re: [Haskell-cafe] Is anyone reading Pattern Calculus by Barry Jay?

2009-12-06 Thread Bernie Pope
2009/12/7 Duane Johnson duane.john...@gmail.com: I just bought a copy of Pattern Calculus [1] by Barry Jay and I would like to discuss the lambda- and pattern-calculus with anyone who is interested.  Is there anyone else here who is reading the book and would like to discuss here (if it is

Re: [Haskell-cafe] Hayoo and Hoogle (beginner question)

2009-12-06 Thread Colin Adams
2009/12/7 drostin77 ml.nwgr...@gmail.com: Hello Hopefully Helpful Haskell Community! (I really wanted that to be alliteration... couldn't come up with an h word for community) House? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Hayoo and Hoogle (beginner question)

2009-12-06 Thread Lyndon Maydwell
'Hood? On Mon, Dec 7, 2009 at 2:43 PM, Colin Adams colinpaulad...@googlemail.com wrote: 2009/12/7 drostin77 ml.nwgr...@gmail.com: Hello Hopefully Helpful Haskell Community! (I really wanted that to be alliteration... couldn't come up with an h word for community) House?

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-06 Thread Alexander Dunlap
On Sun, Dec 6, 2009 at 10:40 PM, Alexander Dunlap alexander.dun...@gmail.com wrote: On Sat, Dec 5, 2009 at 3:00 PM, Michael Snoyman mich...@snoyman.com wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote:

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-06 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 8:40 AM, Alexander Dunlap alexander.dun...@gmail.com wrote: On Sat, Dec 5, 2009 at 3:00 PM, Michael Snoyman mich...@snoyman.com wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman