Re: [Haskell-cafe] Store type-class polymorphic values generically

2013-10-04 Thread Heinrich Apfelmus
Christopher Done wrote: It's very easy to state this problem without enough details and mislead people into providing a solution for a different problem, so I'll try to include all the information and use-case. I need a function that can store a value in a concrete opaque type. I know the type

Re: [Haskell-cafe] Store type-class polymorphic values generically

2013-10-04 Thread Christopher Done
On 4 October 2013 10:56, Heinrich Apfelmus apfel...@quantentunnel.de wrote: In particular, the Locker stores arbitrary values like Dynamic , except that values are extracted and removed with the help of a Key . This gets rid of the Typeable constraint. lock :: Key a - a - Locker I can't

Re: [Haskell-cafe] Store type-class polymorphic values generically

2013-10-04 Thread Heinrich Apfelmus
Christopher Done wrote: On 4 October 2013 10:56, Heinrich Apfelmus apfel...@quantentunnel.de wrote: In particular, the Locker stores arbitrary values like Dynamic , except that values are extracted and removed with the help of a Key . This gets rid of the Typeable constraint. lock ::

Re: [Haskell-cafe] Store type-class polymorphic values generically

2013-10-04 Thread Simon Peyton-Jones
| However, I want to write this as a core-to-core | translation as a ghc-plugin. I want the definition go = putStrLn Hello | World! to be translated to what I wrote above. Core cannot generate new | names to be exported from a module, so go_ is now gone. Wait... what do you mean Core cannot

Re: [Haskell-cafe] Any precedent or plan for guaranteed-safe Eq and Ord instances?

2013-10-04 Thread Heinrich Apfelmus
Tom Ellis wrote: On Wed, Oct 02, 2013 at 11:24:39AM +0200, Heinrich Apfelmus wrote: I'm not sure whether the Eq instance you mention is actually incorrect. I had always understood that Eq denotes an equivalence relation, not necessarily equality on the constructor level. There's a

[Haskell-cafe] ANN: E-book version of the Typeclassopedia

2013-10-04 Thread Erlend Hamberg
While re-reading Brent Yorgey's Excellent Typeclassopedia I converted it to Pandoc Markdown in order to be able to create an EPUB version. Having a “real” e-book meant that I could comfortably read it on my e-book reader and highlight text and take notes while reading. I also fixed some minor

Re: [Haskell-cafe] ANN: E-book version of the Typeclassopedia

2013-10-04 Thread Dag Odenhall
That's great — thank you! On Fri, Oct 4, 2013 at 3:13 PM, Erlend Hamberg ehamb...@gmail.com wrote: While re-reading Brent Yorgey's Excellent Typeclassopedia I converted it to Pandoc Markdown in order to be able to create an EPUB version. Having a “real” e-book meant that I could comfortably

Re: [Haskell-cafe] Store type-class polymorphic values generically

2013-10-04 Thread Alp Mestanogullari
Hi Chris, Maybe this package (from Edward Kmett, surprisingly) could help: http://hackage.haskell.org/package/constraints-0.3.3/docs/Data-Constraint.html? Considering it kind of reifies the type class constraints, I'm wondering whether you could use this to carry the constraints along the value

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Alp Mestanogullari
Hi guys, I have been willing to have a nice GUI DSEL with good aesthetics for a while. I think the hardest part wouldn't be the API, but really what library we use underneath so that it's cross-platform and easy to install for everyone. But I would love for something like that to happen and am

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Jake McArthur
I don't think I would quite say haskell-game is quite relevant. For that matter, the implementation on GitHub is not very good. It's too complicated to scale and too specialized. I've been starting a fresh implementation, since I learned a lot about what I really want to do writing that, but it is

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Alp Mestanogullari
Yes, sorry, why I brought up haskell-game wasn't clear. I meant to say there are already quite a few people willing to improve the situation of graphics programming in Haskell (may it be GUI, games, visualization, ...). And I think we should definitely talk to each other and try to come up with

[Haskell-cafe] Machine Learning Startup Seeks Software Architect

2013-10-04 Thread Charles Weitzer
My name is Charles Weitzer. I have a client with a startup quantitative hedge fund located in Northern California. The Fund currently manages a very healthy amount of capital. The founders have PhD's in Computer Science from Stanford and in Statistics from Berkeley. They have made unpublished

[Haskell-cafe] building a FFI library with cabal

2013-10-04 Thread Tad Doxsee
Hi, I'm trying to create an FFI library to CHOLMOD ( http://www.cise.ufl.edu/research/sparse/cholmod/) but am having problems. My project is here: github.com/tdox/hcholmod. I can link an executable with the build script in the examples directory (line 4). But line 7 does not work (I get

Re: [Haskell-cafe] Newclasses

2013-10-04 Thread Wvv
Newclasses are something like instances, but out of scope. In a baggage. We don't use them for interfere their functions. This why newclasses never overlap each other and between them and any instances. We use newclasses to plug-in/connect to any related class or combine data Replying to you

Re: [Haskell-cafe] Newclasses

2013-10-04 Thread Stijn van Drongelen
On Fri, Oct 4, 2013 at 10:31 PM, Wvv vite...@rambler.ru wrote: Newclasses are something like instances, but out of scope. In a baggage. So under the hood of GHC, newclasses would be partially filled in dictionaries. We already have too many classes: (...) We can't divide all classes to

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Robin KAY
Dear Alp, Alp Mestanogullari wrote: [snip] I have been willing to have a nice GUI DSEL with good aesthetics for a while. I think the hardest part wouldn't be the API, but really what library we use underneath so that it's cross-platform and easy to install for everyone. But I would love for

[Haskell-cafe] Calling Python from Haskell

2013-10-04 Thread Manuel Gómez
Hi list, What’s the preferred way of calling into Python from Haskell? I’ve found MissingPy[0], but it seems to be somewhat bitrotten and a couple of experiments yielded segfaults. There’s also the cpython package[1], but that seems to require Python 3.3, and I’m trying to call into code

[Haskell-cafe] Seeking Control.Lens Combinator

2013-10-04 Thread Charlie Paul
Hello, I'm looking for a combinator along the lines of () :: Lens' a b - Lens' a b' - Lens' a (b,b') I can see how it could lead to lenses that don't follow the laws, but for Lenses which are somehow independent (like _1 and _2), it works perfectly well. Is there a way in lens to specify this

Re: [Haskell-cafe] Calling Python from Haskell

2013-10-04 Thread Arjun Comar
Manuel- Try my fork of the MissingPy library, I've brought it up to date and it seems to function ok with current ghc/python. www.github.com/arjuncomar/missingpy.git The standalone branch also removes a lot of the extra dependencies MissingPy has for extra functionality you probably don't need.

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Alp Mestanogullari
If these said libraries let us write a good API on top, then perfect! The problem is to actually pick the ones fulfilling our needs I think, all the major candidatures have pretty serious drawbacks, AFAIK. On Sat, Oct 5, 2013 at 12:36 AM, Robin KAY komad...@gekkou.co.uk wrote: Dear Alp, Alp

[Haskell-cafe] haskell platform broken in ubuntu

2013-10-04 Thread Rustom Mody
I just upgraded my ubuntu laptop to 13.04 and haskell platform is gone!! http://askubuntu.com/questions/286764/how-to-install-haskell-platform-for-ubuntu-13-04 What is the current status on this? Is 13.10 going to correct this? ___ Haskell-Cafe mailing

Re: [Haskell-cafe] haskell platform broken in ubuntu

2013-10-04 Thread Vagif Verdi
13.04 has packages for ghc 7.6.2 It is easy to install latest haskell platform though. Just run this script: https://github.com/chrisprobst/ubuntu-raring-haskell On Friday, October 4, 2013 8:11:46 PM UTC-7, rusi wrote: I just upgraded my ubuntu laptop to 13.04 and haskell platform is gone!!

Re: [Haskell-cafe] haskell platform broken in ubuntu

2013-10-04 Thread Rustom Mody
On Sat, Oct 5, 2013 at 9:05 AM, Vagif Verdi vagif.ve...@gmail.com wrote: 13.04 has packages for ghc 7.6.2 It is easy to install latest haskell platform though. Just run this script: https://github.com/chrisprobst/ubuntu-raring-haskell I was hoping that something a little less painful than

Re: [Haskell-cafe] haskell platform broken in ubuntu

2013-10-04 Thread Vagif Verdi
That will give you only ghc 7.6.2. If you want latest haskell-platform, source compile is the only option. And btw it is not THAT painful :) You run the script, wait 2-3 minutes and tada! On Friday, October 4, 2013 8:44:29 PM UTC-7, rusi wrote: On Sat, Oct 5, 2013 at 9:05 AM, Vagif Verdi

Re: [Haskell-cafe] haskell platform broken in ubuntu

2013-10-04 Thread Rustom Mody
On Sat, Oct 5, 2013 at 9:18 AM, Vagif Verdi vagif.ve...@gmail.com wrote: That will give you only ghc 7.6.2. If you want latest haskell-platform, source compile is the only option. And btw it is not THAT painful :) You run the script, wait 2-3 minutes and tada! Ok so someone is very confused

Re: [Haskell-cafe] Poll plea: State of GUI graphics libraries in Haskell

2013-10-04 Thread Henk-Jan van Tuyl
On Wed, 02 Oct 2013 12:24:25 +0200, Atze Dijkstra a...@uu.nl wrote: Hi, as for wxHaskell, it is currently maintained at https://github.com/wxHaskell/wxHaskell, compilable with wxWidgets 2.9.5 and GHC 7.6. Work is underway to fix various bugs introduced over time by changes in wxWidgets,