Re: [Haskell-cafe] haskellwiki and Project Euler

2008-02-24 Thread Radosław Grzanka
2008/2/24, Daniel Fischer [EMAIL PROTECTED]: Hi all, I try not to be too rude, although I'm rather disgusted. I know there are several sites out on the web where solutions to PE problems are given. That is of course absolutely against the sporting spirit of Project Euler, Actually, I've

[Haskell-cafe] Database relations mapping

2008-02-23 Thread Radosław Grzanka
Hi, I'm developing toy application to learn HDBC. I have problem with doing relations mapping. Actually I don't know is it a problem or feature. ;) Anyway, I have two tables with relation between them: (this example is simplified to the whole structure of database, you can imagine) CREATE

Re: [Haskell-cafe] Monads

2007-12-03 Thread Radosław Grzanka
Hi, 2007/12/3, PR Stanley [EMAIL PROTECTED]: Hi Does the list consider http://en.wikibooks.org/w/index.php?title=Haskell/Understanding_monadsoldid=933545 a reliable tutorial on monads and, if not, could you recommend an onlien alternative please? I really enjoyed All about Monads by Jeff

Re: [Haskell-cafe] I'm translating All about Monads to Chinese

2007-12-03 Thread Radosław Grzanka
2007/12/3, Albert Lee [EMAIL PROTECTED]: I have been confussed by monad for a long time. and I can't stand for it any more. so I start to translate the tutorial All About Monads to my mother language Chinese. My English is not good enough, so this work is only for my own study~ I know there

Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Radosław Grzanka
2007/11/23, Paulo J. Matos [EMAIL PROTECTED]: Hi all, I'm curious about the best way to typeset haskell code in a wordpress blog. Using blockquote removes all indentation. :-( I'm using geshi with wordpress on my blog (codeside.org) and drupal (upcoming haskell.pl page). But you have to

[Haskell-cafe] Dynamically find out instances of classes (plugin system for haskell)

2007-11-22 Thread Radosław Grzanka
Hi, Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in haskell, to load modules from given directory, and if in module there is instance of class

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Radosław Grzanka
Hi, Thanks for answer. There are two libs that I'm aware of. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins-1.0 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1. 1 Unfortunatly former needs gcc, latter does not compile . I will have to install

Re: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Radosław Grzanka
2007/11/22, Claus Reinke [EMAIL PROTECTED]: Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in haskell, to load modules from given

Re: [Haskell-cafe] Tetris

2007-11-21 Thread Radosław Grzanka
2007/11/21, Conal Elliott [EMAIL PROTECTED]: I've just started using OpenGL with wxHaskell, which is my favorite of the Haskell GUI toolkits. (I like elegant interfaces.) So far, so good. If anyone else is using that combination, I'd love to hear about it. There are bindings for wxWidgets

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Radosław Grzanka
Hi, * Hardest of all: evolution. Both GHC's user manual and library docs change every release. Even material that doesn't change can get moved (e.g. section reorganisation). We don't want to simply discard all user notes! But it's hard to know how to keep them attached; after all they

Re: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]

2007-11-20 Thread Radosław Grzanka
Hi, I have same problem. Hm, this actually is supposed to work. Could you please re-run this procedure with the original path and with maximum verbosity? I.e.: runhaskell Setup configure -v3 Here is the problem: D:\private\haskell\MaybeT-0.1.0runghc Setup.hs configure -v3 Configuring

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Radosław Grzanka
Hi, (Nitpick: Don't you need Gtk2hs in order to *use* OpenGL? I mean, you have to open a window to render into somehow, and that's outside the OpenGL standard...) You have GLUT library for just that: http://www.haskell.org/ghc/docs/latest/html/libraries/GLUT-2.1.1.1/Graphics-UI-GLUT.html

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Radosław Grzanka
Hi It's a fun enough game under Wine, but has anyone managed to get it to compile under Linux? I tried but couldn't, and the associated makefile seems to be very Windows-specific. It's not makefile that is specific but c file for Audio: stub.c It compiles without problem: ghc --make

Re: [Haskell-cafe] Tetris

2007-11-20 Thread Radosław Grzanka
2007/11/20, Bit Connor [EMAIL PROTECTED]: As far as I'm aware, GLUT isn't available for Windows. (Or rather, I tried it once, and it wasn't happy at all. And after some Google searching, I found it's not around any more.) GLUT should work fine on windows, but another alternative is SDL,

Re: [Haskell-cafe] Re: Tetris

2007-11-20 Thread Radosław Grzanka
2007/11/20, Gwern Branwen [EMAIL PROTECTED]: On Nov 20, 2007 10:41 AM, nick ralabate [EMAIL PROTECTED] wrote: Speaking of Tetris and Space Invaders, you might be interested in this project: http://www.geocities.jp/takascience/haskell/monadius_en.html It's a clone of Gradius written

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Radosław Grzanka
2007/11/19, brad clawsie [EMAIL PROTECTED]: The problem is that only one person gets to comment on the quality of a library, the author, who is about the least objective person. by rolling certain libraries into a base distribution, i was implying that there would be more eyeballs

Re: [Haskell-cafe] Properties of monads

2007-11-19 Thread Radosław Grzanka
Hi Benja, Something like the following might feel cleaner, though: maybeT :: Maybe a - MaybeT m a maybeT = MaybeT . return downloadFile :: String - MaybeT IO String downloadFile s = maybeT (parseURI s) = liftIO . httpGet This is even neater. However, I fail to implement this. It does not

Re: [Haskell-cafe] Properties of monads

2007-11-19 Thread Radosław Grzanka
2007/11/19, Ryan Ingram [EMAIL PROTECTED]: I am pretty sure that the constructor MaybeT is exactly what you are looking for. newtype MaybeT m a = MaybeT (m (Maybe a)) therefore MaybeT :: m (Maybe a) - MaybeT m a I swear I tried it. I swear.. Why didn't it worked than and it works now??

[Haskell-cafe] Properties of monads

2007-11-18 Thread Radosław Grzanka
Hello, I am writing some toys programs to learn and try to apply Monads properties (without success, I must say). Although I spent half a day on this code: http://hpaste.org/3957 I couldn't simplify (shorten) getStrip function. After reading Doing it with class (

Re: [Haskell-cafe] Properties of monads

2007-11-18 Thread Radosław Grzanka
Hi Benja, You can find MaybeT here: http://www.haskell.org/haskellwiki/New_monads/MaybeT Thank you, that you spent some time figuring this out. This is exacly what I have expected. (This print was debug leftovers). Now I will try to understand how exacly this works. My big thanks to you

Re: [Haskell-cafe] Network.HTTP problem

2007-11-18 Thread Radosław Grzanka
Hello again Bjorn, This is now fixed and a new release with the fix is available from http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP-3001.0.1 You have left debug flag on in the library code. Thanks, Radek. -- Codeside: http://codeside.org/ Przedszkole Miejskie nr 86 w

[Haskell-cafe] Network.HTTP problem

2007-11-17 Thread Radosław Grzanka
Hello, I have a problem with Network.HTTP module (http://www.haskell.org/http/) version 3001.0.0 . I have already mailed Bjorn Bringert about it but I didn't get answer yet so maybe someone here can help me. GHC v. 6.6.1 Ubuntu 7.10 x86_64 . I have turned on debug flag. Using get example

Re: [Haskell-cafe] Re: Weird ghci behaviour?

2007-11-13 Thread Radosław Grzanka
2007/11/13, Simon Peyton-Jones [EMAIL PROTECTED]: | For technical reasons, GHCi can only support the *-form for modules | which are interpreted, so compiled modules and package modules can | only contribute their exports to the current scope. But it does mean | the interpreter isn't

Re: [Haskell-cafe] An exceptional exception

2007-11-09 Thread Radosław Grzanka
2007/11/8, Andrew Coppin [EMAIL PROTECTED]: Anyway, I wrote a cute little test function for figuring out how each kind of exception works: Hi, could you post your code for this cute test? I would be greatful. Thanks, Radek P.S. Not that I can help, but I'd like to start learning this. --

Re: [Haskell-cafe] please help... small problem

2007-11-09 Thread Radosław Grzanka
2007/11/9, Ryan Bloor [EMAIL PROTECTED]: hi Is there anyway to cut down this code and to not use auxillary functons, but instead use pattern matching? The code basically splits up a list 'rslis' into a list of lists - but so each word is split up and the integers have been parsed. so

Re: [Haskell-cafe] Type error with simple list function

2007-11-08 Thread Radosław Grzanka
2007/11/8, Fernando Rodriguez [EMAIL PROTECTED]: Hi, This simple function definition that should rotate a list (put the first item in the last place) fails with a rather cryptic error with ghc: f :: [a] -[a] -[a] f (w : ws) = ws : w Couldn't match expected type `[a] - [a]' against

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-30 Thread Radosław Grzanka
2007/8/30, Tony Sloane [EMAIL PROTECTED]: On 26/08/2007, at 10:07 AM, Jeremy Shaw wrote: There is also an old project to port nhc98 to PalmOS -- not sure if it is still active, or how far they got. AFAIK, nothing was ever released. Yes, we were working on this at Macquarie Uni. The

[Haskell-cafe] Re: Hugs on Zaurus

2007-08-26 Thread Radosław Grzanka
2007/8/26, Ulrich Vollert [EMAIL PROTECTED]: Haskell could run on such a platform. Ofcourse this is completly other way around in terms of power and memory. :) But anyway, did anyone do it? I compiled Hugs for my Sharp Zaurus SL-C3200 (http://www.trisoft.de) which is a PDA with an ARM

Re: [Haskell-cafe] Haskell on the Playstation 3? :-)

2007-08-25 Thread Radosław Grzanka
It would be a very cool project to show that Haskell could run on such a platform, making it easier to take advance of its awesome power J It's funny. But 5 minutes ago I was thinking: did anyone compiled haskell application for Palm (m68k and/or Arm) that runs on Palm OS? I can literally quote

Re: [Haskell-cafe] building a regular polygon

2007-08-19 Thread Radosław Grzanka
2007/8/19, Daniel C. Bastos [EMAIL PROTECTED]: Any help is appreciated. I also had problem with this exercise. However this was more Haskell newbie problem :) If you're feeling lost you can always try google and come up with this blog with solutions to exercises from this book. You should find

Re: [Haskell-cafe] Collada, FBX, XML schemas and Haskell?

2007-08-17 Thread Radosław Grzanka
Hello, 2007/8/16, Peter Verswyvelen [EMAIL PROTECTED]: I wanted to do some experiments with HOpenGL, and one of the things I tried is importing 3D models. So I searched for a library that could do that, but besides Frag, who uses the limited MD3 format, I did not find anything useful. Has

Re: [Haskell-cafe] Pure functional GUI

2007-08-09 Thread Radosław Grzanka
2007/8/9, Peter Verswyvelen [EMAIL PROTECTED]: Indeed - the *hard* part seems to be figuring out how to run Glade on Windoze... I did not dare to ask this question because I could not believe this was hard... So anybody know how to do this? Run Glade on Window$? The google knows??

Re: [Haskell-cafe] Pure functional GUI

2007-08-09 Thread Radosław Grzanka
2007/8/9, Peter Verswyvelen [EMAIL PROTECTED]: Yeah I tried that one, but only the runtime, because I assumed that glade would be part of it, but I could not find it. I guess I should install the development version. Windows users look differently at these things, they expect all tools to