[Haskell-cafe] Why were datatype contexts removed instead of "fixing them"?

2013-04-25 Thread harry
If I understand correctly, the problem with datatype contexts is that if we have e.g. data Eq a => Foo a = Foo a the constraint Eq a is thrown away after a Foo is constructed, and any method using Foos must repeat Eq a in its type signature. Why were these contexts removed from the language, ins

Re: [Haskell-cafe] Why were datatype contexts removed instead of "fixing them"?

2013-04-25 Thread harry
Kim-Ee Yeoh atamo.com> writes: > data Foo a where >   Foo :: Eq a => a -> Foo a > > is equivalent to > > data Foo a = Eq a => Foo a > > but is different from > > data Eq a => Foo a = Foo a ... and nothing in GADTs does what one would naively expect the last declaration to do. _

Re: [Haskell-cafe] Why were datatype contexts removed instead of "fixing them"?

2013-04-25 Thread harry
Brandon Allbery gmail.com> writes: > As I understand it, it's because fixing them involves passing around a dictionary along with the data, and you can't do that with a standard declaration (it amounts to an extra chunk of data that's only *sometimes* wanted, and that "sometimes" complicates thin

Re: [Haskell-cafe] Why were datatype contexts removed instead of "fixing them"?

2013-04-28 Thread harry
Dan Doel gmail.com> writes: > However, another thing to consider is that getting rid of data type contexts was accepted into the language standard. ... which means that implementers should be free to "fix" data type contexts however they like, as they are now complier extensions which won't conf

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread harry
Hans Georg Schaathun schaathun.net> writes: > Does anyone have experience with integrating Haskell and Java? > I have done some searching, finding a lot of pointers but hardly > anything in terms of evaluation, successes, or caveats. > > From what I see Frege looks promising, arguably not hask

Re: [Haskell-cafe] Release Candidates for Haskell Platform 2013.2

2013-05-13 Thread harry
Mark Lentczner gmail.com> writes: > Some of the release candidates for Haskell Platform 2013.2 are up.These are what I expect to simply "re-brand" as the release, unless anyone uncovers some issues. Will they go on http://trac.haskell.org/haskell-platform/wiki/ReleaseCandidates? (http://trac.has

Re: [Haskell-cafe] Infrastructure for testing the impact of a Functor/Applicative/Monad hierarchy

2013-05-18 Thread harry
Niklas Hambüchen nh2.me> writes: > Reading the other thread (Adding Applicative/Functor instances to all > Monads in GHC) I was wondering if there was infrastructure for testing > what effect making the often-discussed Functor/Monad change would have: > How many packages on hackage would break et

Re: [Haskell-cafe] ANN: Haskell Platform 2013.2.0.0

2013-05-28 Thread harry
Good to see it released! Was there a deliberate decision not to build a Windows x64 platform, or is it just that there wasn't anyone to do it? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-05-29 Thread harry
Edward Kmett gmail.com> writes: > * Haskell Qt Binding Generator by Zhengliang Feng, mentored by Carter Schonwald with help from Ian-Woo Kim Interesting, as this has been done at least twice before. Is there a public write-up of what's going to be different this time? _

Re: [Haskell-cafe] Install wx on Windows XP

2013-05-29 Thread harry
On Tue, 26 Mar 2013 08:58:18 +0100, Eric Wong wrote: > The best way to do this, is to download from >https://github.com/atzedijkstra/wxHaskell > . (This is the most up to date repository online.) Then replace the > wxcore\Setup.hs file with the one attached to this e-mail (this has not >

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-05-29 Thread harry
Edward Kmett gmail.com> writes: > There should be a link from the google-melange website, but one slight shift in focus is on either getting SWIG bindings or possibly even using Ian-Woo Kim's C++FFI tools. Carter may be able to go into more detail. There's almost no information in the google pro

Re: [Haskell-cafe] Is there a generic way to detect "mzero"?

2012-03-26 Thread Harry Terkelsen
Jeff, I don't think your code works in general, since it is not guaranteed that x' == mzero is allowed unless (m b) is an instance of Eq. I'm unsure if you are able to test for mzero in general. Harry On Mon, Mar 26, 2012 at 3:11 PM, Jeff Shaw wrote: > > can :: (Mona

[Haskell-cafe] Comparing programs

2006-03-06 Thread Harry Chesley
This is more of an algorithm question than a language question, but any insights would be much appreciated. The problem is to input a series of programs and find previous occurrences of the same algorithm. The programs consist of a set of input parameters (a, b, c, ...), and a set of side-ef