Re: [Haskell-cafe] x - String

2009-10-17 Thread Andrew Coppin
Derek Elkins wrote: See vacuum: http://hackage.haskell.org/package/vacuum Could be useful... Thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Approaches to dependent types (DT)

2009-10-17 Thread pat browne
Petr, Thanks for the links. My research involves the study of current algebraic specification and programming languages. I have posted some very general and abstract style questions in order to get a better feel of the individual languages. I do not wish to become highly proficient in each

Re: [Haskell-cafe] GHC devs

2009-10-17 Thread Andrew Coppin
Martijn van Steenbergen wrote: David Virebayre wrote: Taking the opportunity to thank very much both Simons and Ian for the work they do and the enthusiasm they show. You guys rock. I heartily second that! I won't disagree with that sentiment. ;-) According to a paper I just read, GHC is

Re: [Haskell-cafe] Genuine Need For Persistent Global State?

2009-10-17 Thread Alan Carter
On Fri, Oct 16, 2009 at 9:13 PM, Bryan O'Sullivan b...@serpentine.comwrote: You don't need anything special for this. A Linux kernel struct device has a void *driver_data member which is private for your use, and intended for precisely this purpose. Global persistent state makes no more sense

Re: [Haskell-cafe] Genuine Need For Persistent Global State?

2009-10-17 Thread Don Stewart
alangcarter: On Fri, Oct 16, 2009 at 9:13 PM, Bryan O'Sullivan b...@serpentine.com wrote: You don't need anything special for this. A Linux kernel struct device has a void *driver_data member which is private for your use, and intended for precisely this purpose. Global

[Haskell-cafe] Monadic correctness

2009-10-17 Thread Andrew Coppin
Suppose we have newtype Foo x instance Monad Foo runFoo :: Foo x - IO x What sort of things can I do to check that I actually implemented this correctly? I mean, ignoring what makes Foo special for a moment, how can I check that it works correctly as a monad.

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Edward Z. Yang
Excerpts from Andrew Coppin's message of Sat Oct 17 15:21:28 -0400 2009: Suppose we have newtype Foo x instance Monad Foo runFoo :: Foo x - IO x What sort of things can I do to check that I actually implemented this correctly? I mean, ignoring what makes Foo special for a

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread David Menendez
On Sat, Oct 17, 2009 at 3:21 PM, Andrew Coppin andrewcop...@btinternet.com wrote: Suppose we have  newtype Foo x  instance Monad Foo  runFoo :: Foo x - IO x What sort of things can I do to check that I actually implemented this correctly? I mean, ignoring what makes Foo special for a

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Andrew Coppin
Edward Z. Yang wrote: Excerpts from Andrew Coppin's message of Sat Oct 17 15:21:28 -0400 2009: Suppose we have newtype Foo x instance Monad Foo runFoo :: Foo x - IO x What sort of things can I do to check that I actually implemented this correctly? I mean, ignoring what makes Foo

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Derek Elkins
On Sat, Oct 17, 2009 at 3:24 PM, Andrew Coppin andrewcop...@btinternet.com wrote: Edward Z. Yang wrote: Excerpts from Andrew Coppin's message of Sat Oct 17 15:21:28 -0400 2009: Suppose we have   newtype Foo x   instance Monad Foo   runFoo :: Foo x - IO x What sort of things can I do to

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Andrew Coppin
Derek Elkins wrote: On Sat, Oct 17, 2009 at 3:24 PM, Andrew Coppin andrewcop...@btinternet.com wrote: I'm reasonably confident it works, but not 100% sure... newtype Foo x = Foo (M - IO x) In this case it is trivial, Foo = ReaderT M IO which is a monad. Ah yes, of course... I keep

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Daniel Fischer
Am Samstag 17 Oktober 2009 22:24:08 schrieb Andrew Coppin: Edward Z. Yang wrote: Excerpts from Andrew Coppin's message of Sat Oct 17 15:21:28 -0400 2009: Suppose we have newtype Foo x instance Monad Foo runFoo :: Foo x - IO x Are you sure that's really the type you want for

Re: [Haskell-cafe] Monadic correctness

2009-10-17 Thread Andrew Coppin
Daniel Fischer wrote: Am Samstag 17 Oktober 2009 22:24:08 schrieb Andrew Coppin: Edward Z. Yang wrote: Excerpts from Andrew Coppin's message of Sat Oct 17 15:21:28 -0400 2009: Suppose we have newtype Foo x instance Monad Foo runFoo :: Foo x - IO x Are you

Re: [Haskell-cafe] Reverse dependencies in Hackage

2009-10-17 Thread Henning Thielemann
Roel van Dijk schrieb: A few weeks ago I wrote a patch that adds reverse dependencies to hackage [1]. I have know hosted a small test hackage which demonstrates this feature. It can be found here: http://bifunctor.homelinux.net/~roel/hackage Browse to your favorite packages and find out