Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-17 Thread David Roundy
On Mon, Jul 17, 2006 at 03:07:51AM +0100, Neil Mitchell wrote: Hi Brian, I kind of expect that a Haskell library for file paths will use the type system to ensure some useful properties about the paths. I am specificially concentrating on type FilePath = String, because that is how it is

[Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Bulat Ziganshin
Hello gurus :) i got message about problems compiling Streams 0.2.1 library on Unix systems: - I include file io.h, but this particular system has sys/io.h instead. I think that i should solve this problem by including HsBase.h which should include proper io.h on any system supported. One more

Re: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 18:04 +0400, Bulat Ziganshin wrote: Hello gurus :) i got message about problems compiling Streams 0.2.1 library on Unix systems: - I include file io.h, but this particular system has sys/io.h Are you sure you need sys/io.h? What are you using from it? As far as I can

Re: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Eugene Crosser
Bulat Ziganshin wrote: - I include file io.h, but this particular system has sys/io.h instead. Just out of the blue: could it be that you rather need fcntl.h? It's the place where open() and friends are defined. Maybe(?) windows have them in io.h... - mingw supports _commit operation which

Re: [Haskell-cafe] Compiling ghc for using STM

2006-07-17 Thread Bulat Ziganshin
Hello Asfand, Monday, July 17, 2006, 7:31:23 PM, you wrote: I finally got my spiffy dual-core processor (an Opteron 165 no-less) and want to learn STM, since I think it and haskell are the future of concurrent programming. How do I compile Haskell to be able learn STM on it, using proper

Re: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Lennart Augustsson
On Jul 17, 2006, at 10:04 , Bulat Ziganshin wrote: #!/usr/bin/env runhaskell instead of #!/usr/bin/runhaskell at the start of Setup.hs file. Is that really better? Yes, much better. I think it's crazy to have runhaskell installed in /usr/bin. It should be somewhere in your path, but

Re[2]: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Bulat Ziganshin
Hello Duncan, Monday, July 17, 2006, 6:18:49 PM, you wrote: - I include file io.h, but this particular system has sys/io.h Are you sure you need sys/io.h? What are you using from it? As far as I can see it doesn't define anything that you might want to use, just functions for reading and

Re: Re[2]: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 19:59 +0400, Bulat Ziganshin wrote: Hello Duncan, Monday, July 17, 2006, 6:18:49 PM, you wrote: - I include file io.h, but this particular system has sys/io.h Are you sure you need sys/io.h? What are you using from it? As far as I can see it doesn't define

Re: [Haskell-cafe] Compiling ghc for using STM

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 18:29 +0100, Asfand Yar Qazi wrote: On 7/17/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: if you want to really use 2 processors, you should use ghc 6.5, which is still in beta stage. ghc 6.4 executes all the Haskell code on one processor (to be exact, at each moment

Re: [Haskell-cafe] process simulation in functional style

2006-07-17 Thread Jared Updike
Also, I found that the textbook The Haskell School of Expression by Paul Hudak is a good introduction (particularly, if I remember correctly, the second half of the book) to functional reactive programming in Haskell. Jared. On 7/16/06, Nicolas Frisby [EMAIL PROTECTED] wrote: You might

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-17 Thread Brian Smith
Hi Neil,On 7/17/06, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Brian,You sent this email just to me, and not to the list. If you indendedto send to the list then feel free to forward my bits on to the list. I know that FilePath is defined by Haskell '98 as a String and so it cannot be changed. So,

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-17 Thread Neil Mitchell
Hi I disagree. It would be trivial to create a new module that exported new definitions of file IO actions that operated on GoodPath instead of FilePath, transparently delegating to the original readFile/writeFile/etc. until they could be removed in the future. This would also support the

[Haskell-cafe] announce: (preliminary) dbus haskell bindings

2006-07-17 Thread Evan Martin
D-Bus is a message bus system, a simple way for applications to talk to one another. [1] It's particularly popular on free software desktops (Gnome, KDE). HDBus wraps the DBus APIs so your Haskell code can broadcast messages and make calls to services. For example, on my recent Ubuntu system,

[Haskell-cafe] Re: [Gtk2hs-devel] announce: (preliminary) dbus haskell bindings

2006-07-17 Thread Duncan Coutts
That's great Evan! I had actually been hoping that we'd get a student to do D-Bus bindings for a Google Summer of Code project. Sadly we didn't get quite enough places assigned for a D-Bus project to make it into our list. I would be happy to include D-Bus bindings with Gtk2Hs as it's generally

[Haskell-cafe] Re: Type-Level Naturals Like Prolog?

2006-07-17 Thread Jared Warren
Thank you to everyone for the responses. I guess what I should have clarified is that I know how Peano numbers are *normally* encoded in the type language (I am very familiar with the HList library), but I would like to know why the type language appears to require data structures to do so while

Re: [Haskell-cafe] Re: Type-Level Naturals Like Prolog?

2006-07-17 Thread Donald Bruce Stewart
jawarren: Thank you to everyone for the responses. I guess what I should have clarified is that I know how Peano numbers are *normally* encoded in the type language (I am very familiar with the HList library), but I would like to know why the type language appears to require data structures