[Haskell-cafe] Re: [Haskell-beginners] Ambigous Types with Haskell Functional Graph Library

2009-08-17 Thread Max Desyatov
Joe joesmo...@gmail.com writes: I tried using ucycle directly from Data.Graph.Inductive.Example by itself. I didn't realize there were two instances of Graph. How would you use the PatriciaTree Graph instance in the ucycle type signature? ucycle :: Graph gr = Int - gr () () You must have

[Haskell-cafe] Re: [Haskell] ANNOUNCE: GLUT 2.2.1.0

2009-08-17 Thread Sven Panne
Am Sonntag, 16. August 2009 22:10:23 schrieb Rafael Gustavo da Cunha Pereira Pinto: BTW, as an enhancement for 2.2.2.0, you could treat unnamed mouse buttons. Mouses with more axis and more buttons are becoming increasingly common, and unmarshalMouseButton is not prepared to accept them!!

[Haskell-cafe] Got problems with classes

2009-08-17 Thread Grigory Sarnitskiy
Hello! I can't understand why the following dummy example doesn't work. {-# OPTIONS -XTypeSynonymInstances #-} {-# OPTIONS -XFlexibleInstances #-} module Main where import Data.Array.Unboxed class Particle p type ParticleC = (Double, Double, Double) instance Particle ParticleC class

Re: [Haskell-cafe] Got problems with classes

2009-08-17 Thread Bulat Ziganshin
Hello Grigory, Monday, August 17, 2009, 10:35:33 AM, you wrote: Hello! I can't understand why the following dummy example doesn't work. http://haskell.org/haskellwiki/OOP_vs_type_classes shortly speaking, throw away your OOP experience and learn new paradigm from scratch. also,

Re: [Haskell-cafe] Type family signatures

2009-08-17 Thread Thomas van Noort
Somehow I didn't receive David's mail, but his explanation makes a lot of sense. I'm still wondering how this results in a type error involving rigid type variables. Ryan Ingram wrote: On Fri, Aug 14, 2009 at 12:03 PM, Dan Westonweston...@imageworks.com wrote: But presumably he can use a

Re: [Haskell-cafe] Request for comments - hdnsomatic

2009-08-17 Thread Neil Mitchell
Hi I should release a new version - the darcs version requires haskell-src-exts 1.1.*. I'll do that tonight. Thanks, Neil 2009/8/17 Jesús Alberto Sánchez Pimienta jesusalbertosanc...@gmail.com: Many Thanks Neil, I tried to build hlint before submitting to the mail list but i couldn't

Re: [Haskell-cafe] Getting highest sum of list elements with Map

2009-08-17 Thread david48
On Wed, Aug 5, 2009 at 10:51 AM, gwe...@gmail.com wrote: (Full source attached; or alternately, grab it: darcs get http://community.haskell.org/~gwern/hcorpus ) So I have this little program which hopefully will help me learn French by Probably off-topic, but also, I'm willing to help anyone

Re : [Haskell-cafe] Elerea/GLFW Tetris

2009-08-17 Thread jean legrand
As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code. They're part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation. Another solution

[Haskell-cafe] Re: [Haskell] ANNOUNCE: GLUT 2.2.1.0

2009-08-17 Thread Rafael Gustavo da Cunha Pereira Pinto
On Mon, Aug 17, 2009 at 03:17, Sven Panne sven.pa...@aedion.de wrote: Am Sonntag, 16. August 2009 22:10:23 schrieb Rafael Gustavo da Cunha Pereira Pinto: BTW, as an enhancement for 2.2.2.0, you could treat unnamed mouse buttons. Mouses with more axis and more buttons are becoming

Re: Re : [Haskell-cafe] Elerea/GLFW Tetris

2009-08-17 Thread Peter Verswyvelen
As a side-note, it might be interesting to use the Vec package on Hackage, since it seems to offer fast, unboxed linear algebra. On Mon, Aug 17, 2009 at 2:01 PM, jean legrand kkwwe...@yahoo.fr wrote: As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in

Re : [Haskell-cafe] Elerea/GLFW Tetris

2009-08-17 Thread jean legrand
As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code. They're part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation. Another

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: GLUT 2.2.1.0

2009-08-17 Thread Martijn van Steenbergen
Sven Panne wrote: and simply pass the unknown button numbers via this case. I am not so sure about a nice name for this constructor: AdditionalButton? GenericButton? Or simply MouseButton, just like the type itself? How about OtherButton? Martijn.

Re: [Haskell-cafe] Got problems with classes

2009-08-17 Thread Neil Brown
Hi, One reason (there may be more) is as follows: Grigory Sarnitskiy wrote: class Configuration c where getParticleI :: (Particle p) = c - Int - p This type signature declares that for any type c that has a Configuration instance (and an Int), you can give me back something that is of

[Haskell-cafe] Grouping and SIMD in parallel Haskell (using Nested Data Parallel Haskell ideas in legacy code)

2009-08-17 Thread Zefirov Sergey
I haven't had enough time to polish a paper about the subject, so I decided to post my results here, in Haskell Café. When Simon Peyton-Jones was in Moscow about a month ago I made a bold statement that Parallel Haskell programs, expressed with the help of par and pseq, can be transformed into

Re: [Haskell-cafe] Got problems with classes

2009-08-17 Thread Job Vranish
I'm not exactly sure what you're trying to do, but the problem is that you're trying to return a specific value where the type signature is polymorphic. getParticleI returns a p, (with the constraint that p is a type in the class Particle) This means that getParticleI can be called in any

[Haskell-cafe] Credit Suisse is hiring

2009-08-17 Thread Sittampalam, Ganesh
Hi, Just to chime in with the spate of job advertisements, the Global Modelling and Analytics Group (GMAG) at Credit Suisse is once again looking to hire functional programmers. The group consists of about 130 people worldwide. The majority of the group are mathematicians engaged in

[Haskell-cafe] Re: Changelogs and available since

2009-08-17 Thread Max Desyatov
Laszlo Nagy rizso...@gmail.com writes: Hi All, I was volunteer to solve this problem: http://hackage.haskell.org/trac/summer-of-code/ticket/1565 In a conversation on the librar...@haskell.org I was suggested to scratch my idea here. I would use hoogle for this. Currently it stores the

Re: [Haskell-cafe] Got problems with classes

2009-08-17 Thread Grigory Sarnitskiy
Thank you all, and especially Bulat. I've folowed the links and solved the problem in a new way. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: simple hsql question

2009-08-17 Thread Alexander Kotelnikov
Ok, let me ask it in another way. Is there a good way to access databases, mysql in particular, from haskell program? On Sun, 16 Aug 2009 18:54:32 +0400 AK == Alexander Kotelnikov sa...@myxomop.com wrote: AK AK Hi AK I wanted to see what access to databases HSQL provides and I stumbled in AK

Re: [Haskell-cafe] Re: Changelogs and available since

2009-08-17 Thread Neil Mitchell
Hi I would use hoogle for this. Currently it stores the package name and the symbols of the modules about a package. What do you think about hayoo?  I prefer this to hoogle, as hayoo has more complete database across hackage packages, AFAIK Hayoo gets it package database out of haddock with

Re: [Haskell-cafe] Re: Changelogs and available since

2009-08-17 Thread Job Vranish
What would it take to increase the hoogle index to most of the packages on hackage? I have been wanting to use hoogle to search hackage for a while and I would be interesting in helping make it happen. - Job On Mon, Aug 17, 2009 at 4:16 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi I

Re: [Haskell-cafe] Re: simple hsql question

2009-08-17 Thread Max Desyatov
Alexander Kotelnikov sa...@myxomop.com writes: Ok, let me ask it in another way. Is there a good way to access databases, mysql in particular, from haskell program? Use HDBC or Takusen. You can find them on hackage. HDBC is fairly usable, but you must write SQL queries by yourself or use

[Haskell-cafe] Re: Request for Comments - hscurrency 0.0.1

2009-08-17 Thread Simon Michael
Thanks for sharing this. If you haven't already, also check out http://hledger.org/api-doc - Amount and Commodity modules for possibly related work. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ANN: OpenCLRaw 1.0.1000

2009-08-17 Thread Jeff Heard
All, I've released a raw binding to the OpenCL platform on Hackage. The main differences between it and the C bindings are that constants have been replaced by newtypes for type safety reasons, void-essential functions that return a token errorcode return a Maybe ErrorCode, and functions that

[Haskell-cafe] Re: ANN: OpenCLRaw 1.0.1000

2009-08-17 Thread Maurí­cio CA
I've released a raw binding to the OpenCL platform on Hackage. The main differences between it and the C bindings are that constants have been replaced by newtypes for type safety reasons, (...) If you think there's something I could change in the package below to make it usefull for this