Re: [Haskell-cafe] Cal, Clojure, Groovy, Haskell, OCaml, etc.

2009-10-01 Thread david48
On Tue, Sep 29, 2009 at 9:36 PM, Andrew Coppin andrewcop...@btinternet.com wrote: Similarly, Parsec has some lovely external documentation (unfortunately as a single giant HTML page), but the Haddock stuff is bare. The last version (3.x) improves things.

Re: [Haskell-cafe] How to decide if a number is an integer?

2009-09-29 Thread david48
On Tue, Sep 29, 2009 at 9:13 AM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: The properFaction part is correct. So I posted the whole code, since isInteger should accept any reasonable incoming types. Well, in this one situation, it does not. And I cannot figure out why

Re: [Haskell-cafe] Building com-1.2.3

2009-09-22 Thread david48
On Mon, Sep 21, 2009 at 8:37 PM, Andrew Coppin andrewcop...@btinternet.com wrote: It also doesn't explain why Cabal isn't finding include/WideStringSrc.h, even though that's the correct relative path to the file. I checked six times; it's definitely there. include/WideStringSrc.h is a relative

Re: [Haskell-cafe] Cabal packages - cabbages

2009-09-22 Thread david48
On Mon, Sep 21, 2009 at 12:11 AM, Jason Dusek jason.du...@gmail.com wrote:  Some day, we're going to need a short, catchy name for Cabal  packages. Let's call them cabbages. C'est chou ! :-P +1 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Trouble installing leksah

2009-09-17 Thread david48
On Thu, Sep 17, 2009 at 9:01 AM, Gregory Propf gregorypr...@yahoo.com wrote: I now have the Haskell platform install problem solved but I'm now trying to get the leksah IDE installed and I'm getting this. runhaskell Setup configure Configuring leksah-0.6.1... Setup: At least the following

Re: [Haskell-cafe] ANNOUNCE: lenses -- Simple Functional Lenses

2009-09-03 Thread david48
On Thu, Sep 3, 2009 at 3:34 PM, Job Vranishjvran...@gmail.com wrote: It looks like the haddock documentation is generated now. There are a couple simple examples for accessing nested state in the tutorial in the module documentation here:

Re: Re[Haskell-cafe] [2]: Re[2]: Reduction Sequence of simple Fibonacci sequence implementation

2009-08-28 Thread david48
On Fri, Aug 28, 2009 at 1:03 PM, staafmeisterg.c.stave...@uu.nl wrote: The list you give prod is also 10 MB so it not a terribly inefficient program. That list takes memory only if it is forced. If it is passed to a lazy function, all the list may not be in memory at once.

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] Need feedback on my Haskell code

2009-07-31 Thread david48
On Fri, Jul 31, 2009 at 5:53 AM, Ryan Ingramryani.s...@gmail.com wrote: Read ($) as a parenthesis that extends as far to the right as possible; so you can write, for example: That doesn't always work, for example : map (+2) . map (*1) $ [1,2,3] = [4,6,8] Now replacing the $ by a parenthesis

Re: [Haskell-cafe] Need feedback on my Haskell code

2009-07-29 Thread david48
On Wed, Jul 29, 2009 at 12:04 PM, CK Kashyapck_kash...@yahoo.com wrote: map maySwitch . unfoldr go $ (x1,y1,0) I'm not an expert and I might say things the wrong way or without the required rigor, so with this disclaimer here's my explanation : go calculates a step of the line, given the

Re: [Haskell-cafe] Re: Proposal: TypeDirectedNameResolution

2009-07-28 Thread david48
There are other possible language extension that may make qualification easier, Pascal's  with  statement comes to mind.  http://freepascal.decenturl.com/with-statement-pascal In Haskell, this would work something like this:  histogram xs =      with Data.Map          foldl' f empty xs  

Re: [Haskell-cafe] Re: cheap in-repo local branches (just needs implementation)

2009-07-22 Thread david48
On Wed, Jul 22, 2009 at 4:40 AM, Trent W. Buckt...@cybersource.com.au wrote: Later, when that user has developed VCS habits and is trusted to work on larger group projects, I can introduce the additional complexity of in- repo branching without overwhelming him. I went from nothing to using

Re: [Haskell-cafe] Re: cheap in-repo local branches (just needs implementation)

2009-07-22 Thread david48
On Wed, Jul 22, 2009 at 9:41 AM, Magnus Therningmag...@therning.org wrote: On Wed, Jul 22, 2009 at 7:46 AM, david48dav.vire+hask...@gmail.com wrote: I went from nothing to using git, and I sincerely don't know what's overwhelming about repo branching. You just need to work with more

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:37 PM, Wolfgang Jeltschg9ks1...@acme.softbase.org wrote: To my knowledge, Haddock only supports ASCII as input encoding. If you want to have characters outside ASCII, you have to escape them using something like #xA0;. Which would mean, while editing the code I'd have

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang Jeltschg9ks1...@acme.softbase.org wrote: Yes, it’s a pity. For me, it’s not such a big problem since I don’t write my Haddock comments in my native language (German) but in English. I only experience this problem because I use nice typography, i.e., “ ”

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-17 Thread david48
On Fri, Jul 17, 2009 at 4:15 PM, david48dav.vire+hask...@gmail.com wrote: On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang GHC supports UTF-8 input, and Haddock uses GHC nowadays. So, in my opinion, Haddock should also support UTF-8 input. Do you want to file a feature request? Sure. I'm

[Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread david48
Hello all, I made a small program for my factory and I wanted to try to document it using haddock. The thing is, the comments are in French and the resulting html pages are unreadable because the accentuated letters are mangled. It's not acceptable to use HTML entities, as I'd like the comments

Re: [Haskell-cafe] What's the status with unicode characters on haddock ?

2009-07-10 Thread david48
On Fri, Jul 10, 2009 at 10:55 AM, Magnus Therningmag...@therning.org wrote: On Fri, Jul 10, 2009 at 8:54 AM, david48dav.vire+hask...@gmail.com wrote: Not that I have any hope of being able to answer your question, but I think it might be useful if you informed us _where_ the characters are

Re: [Haskell-cafe] Re: Haskell Platform on Ubuntu

2009-07-08 Thread david48
Even if 6.10.3 gets into Karmic, I'm sure the problem will arise again once 6.12.1 is out. It's sadly easier to install from the tarball. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell Platform on Ubuntu

2009-07-08 Thread david48
2009/7/8 Matthias Görgens matthias.goerg...@googlemail.com: One problem I see is the binary-only distribution of packages. This makes cabal-install incompatible with most distributions except, maybe, gentoo. The automation process would have to run through hackageDB tracking dependencies and

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-07-01 Thread david48
On Wed, Jul 1, 2009 at 9:34 AM, Jochem Berndsenjoc...@functor.nl wrote: a...@spamcop.net wrote: I tend to agree.  Moreover, and I realise this may be a losing battle, I want (++) to be the generic operator. I totally agree. So do I. David. ___

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-07-01 Thread david48
On Wed, Jul 1, 2009 at 2:18 PM, Jules Beanju...@jellybean.co.uk wrote: Duncan Coutts wrote: I agree, if we can't use ++ then is the next best thing. As John says it's already a monoid operator for Data.Sequence and Text.PrettyPrint. I agree, if we can't use + and + then is the next best

Re: [Haskell-cafe] Leksah works!

2009-06-30 Thread david48
On Tue, Jun 30, 2009 at 4:28 PM, jutaroj...@arcor.de wrote: As Leksah developer I approve your comment. Even better we will soon have a new release that integrates GHCi and a !visual debugger! plus other useful features like much enhanced text search with regex and grep and enhanced GUI

Re: [Haskell-cafe] coding standard question

2009-06-29 Thread david48
Hello Daniel and all, Your suggestion #1 : Can't import Database.HDBC.MySQL.Connection : da...@pcdavid2:~/projets/haskell/caimonitor$ ghci -Wall Bdd.hs GHCi, version 6.10.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking

Re: [Haskell-cafe] coding standard question

2009-06-29 Thread david48
On Mon, Jun 29, 2009 at 3:41 PM, Daniel Fischerdaniel.is.fisc...@web.de wrote: Am Montag 29 Juni 2009 10:47:05 schrieb david48: connecter :: IConnection conn = conn connecter = connectMySQL mysqlInfo And even though I suspect that's the correct type, it fails too : No, that's too general

Re: [Haskell-cafe] coding standard question

2009-06-26 Thread david48
On Thu, Jun 25, 2009 at 3:27 AM, wren ng thorntonw...@freegeek.org wrote: If certain warnings truly are spurious and unavoidable, then it's best to document this explicitly in the code by pragmas to disable the relevant warnings. This way the spurious nature of the warning is documented (for

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread david48
Marciej, I went the HDBC route and got the same problem. Although it does not seem to be officially blessed, try installing the time-1.1.3 package. It's working for me at least, which I know is a dubious recommendation.What worked for me : 1) Install GHC 6.10.3 from the binary tarball 2)

[Haskell-cafe] Qt declarative UI

2009-05-13 Thread david48
I thought that it might interest some people : http://labs.trolltech.com/page/Projects/Graphics/Kinetic/DeclarativeUI ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] applicative challenge

2009-05-05 Thread david48
On Mon, May 4, 2009 at 11:49 PM, Conor McBride co...@strictlypositive.org wrote: Remember folks: Missiles need miffy! Quote of the week ! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Can subclass override its super-class' default implementation of a function?

2009-04-28 Thread david48
On Mon, Apr 27, 2009 at 11:00 PM, siki ga...@karamaan.com wrote: I'm not sure if this is possible at all. I'd like to do something like this: class A a where    foo :: a - Double    foo a = 5.0 class (A a) = B a where    foo a = 7.0 I probably don't understand the question properly,

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-22 Thread david48
On Wed, Apr 22, 2009 at 12:32 AM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: On Tue, 2009-04-21 at 12:31 +0200, david48 wrote: For what it's worth, It's bothered me often enough that cabal doesn't install globally by default that I had to reinstall ghc in order to solve package

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-22 Thread david48
On Wed, Apr 22, 2009 at 12:06 PM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: On Wed, 2009-04-22 at 11:33 +0200, david48 wrote: The default should at least be consistent among cabal install, runghc Setup.hs, installing GHC, Gtk2Hs, and so on. If GHC is installed in /home

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-22 Thread david48
The default should at least be consistent among cabal install, runghc Setup.hs, installing GHC, Gtk2Hs, and so on. If GHC is installed in /home/myusername/local, what does cabal install --global ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-22 Thread david48
On Wed, Apr 22, 2009 at 1:01 PM, Duncan Coutts duncan.cou...@worc.ox.ac.ukwrote: On Wed, 2009-04-22 at 12:21 +0200, david48 wrote: Lines starting with -- are comments. You need to uncomment the prefix line for it to have an effect. Man do I feel dumb now :) David

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-22 Thread david48
On Wed, Apr 22, 2009 at 1:28 PM, Victor Nazarov asviraspossi...@gmail.comwrote: Ubuntu/Debian policy seems to be installation into /var/lib/cabal . So it's clear that the whole hierarchy is managed by single tool cabal. Drawback is that you should add /var/lib/cabal/bin into your PATH.

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-21 Thread david48
For what it's worth, It's bothered me often enough that cabal doesn't install globally by default that I had to reinstall ghc in order to solve package issues. So I'd prefer the default to be global. But I don't care that much, I don't think arguing that point is leading anywhere.

Re: [Haskell-cafe] MySQL and HDBC?

2009-01-23 Thread david48
On Fri, 2009-01-23 at 03:54 -0600, Galchin, Vasili wrote: ooops ... cabal install HDBC-mysql doesn't work ?? for what it's worth, calbal install hdbc-mysql worked on my office's pc. ( kubuntu 8.10 ) ___ Haskell-Cafe mailing list

Re: Re[2]: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-17 Thread david48
On Fri, Jan 16, 2009 at 3:10 PM, Bulat Ziganshin bulat.zigans...@gmail.com wrote: Hello david48, Friday, January 16, 2009, 4:16:51 PM, you wrote: Upon reading this thread, I asked myself : what's a monoid ? I had no idea. I read some posts, then google haskell monoid. it would

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-17 Thread david48
On Fri, Jan 16, 2009 at 4:04 PM, Jonathan Cast jonathancc...@fastmail.fm wrote: On Fri, 2009-01-16 at 14:16 +0100, david48 wrote: Part of the problem is that something like a monoid is so general that I can't wrap my head around why going so far in the abstraction. For example, the writer

Re: Re[2]: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-17 Thread david48
On Sat, Jan 17, 2009 at 4:08 PM, David Leimbach leim...@gmail.com wrote: So you're saying it should be better documented in Haskell what a Monoid is. Did you say you searched for C++ class why not Haskell Monoid then? The first correct google hit that didn't think I meant Monads, takes you

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-17 Thread david48
On Sat, Jan 17, 2009 at 11:19 PM, Dan Piponi dpip...@gmail.com wrote: On Sat, Jan 17, 2009 at 1:47 AM, david48 dav.vire+hask...@gmail.com wrote: why would I need to write a running count this way instead of, for example, a non monadic fold, which would probably result in clearer and faster

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-16 Thread david48
On Fri, Jan 16, 2009 at 5:39 AM, Creighton Hogg wch...@gmail.com wrote: For you folks who work on GHC, is it acceptable to open tickets for poor documentation of modules in base? I think leaving the documentation to the tragedy of the commons isn't the best move, but if even a few of us could

Re: [Haskell-cafe] Re: Hypothetical Haskell job in New York

2009-01-08 Thread david48
On Thu, Jan 8, 2009 at 11:58 AM, Manlio Perillo manlio_peri...@libero.it wrote: Unfortunately Haskell is not yet ready for this task. What makes you say that ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: [Haskell] ANN: Real World Haskell, now shipping

2008-11-29 Thread david48
On Wed, Nov 26, 2008 at 6:11 PM, Don Stewart [EMAIL PROTECTED] wrote: I'd love it if people took a photo of the book arriving. With enough photos , I could put together a gallery of Haskell around the world :-) Will do ! ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: [Haskell] ANN: Real World Haskell, now shipping

2008-11-26 Thread david48
Is it possible to order it from France yet ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: [Haskell] ANN: Real World Haskell, now shipping

2008-11-26 Thread david48
On Wed, Nov 26, 2008 at 9:10 AM, Don Stewart [EMAIL PROTECTED] wrote: dav.vire+haskell: Is it possible to order it from France yet ? http://www.amazon.fr/Real-World-Haskell-Bryan-OSullivan/dp/0596514980/ref=sr_1_1?ie=UTF8s=english-booksqid=1227687031sr=8-1 Actually right now I was logging in

Re: [Haskell-cafe] Re: [Haskell] ANN: Real World Haskell, now shipping

2008-11-26 Thread david48
Actually right now I was logging in to Amazon.fr to check :) It's not available yet on Amazon.fr. I've ordered them anyway, but I'm warned that I will not have them for christmas :( ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: Hmm, what license to use?

2008-10-06 Thread david48
There's an article on slashdot about a developper that has a dilemna with his BSD-licenced work, I thought that might be relevant to this thread : http://ask.slashdot.org/article.pl?sid=08/10/05/1317252 ___ Haskell-Cafe mailing list

Re: Re[12]: [Haskell-cafe] Climbing up the shootout...

2008-09-24 Thread david48
On Wed, Sep 24, 2008 at 11:20 PM, Bulat Ziganshin [EMAIL PROTECTED] wrote: please show me example that you mean and i will show exact reasons why this Haskell code wasn't compared to the best C code The shootout seems pretty popular, and there's still a lot of C programmers around, so I wonder

Re: [Haskell-cafe] Line noise

2008-09-22 Thread david48
On Sun, Sep 21, 2008 at 10:04 PM, Claus Reinke [EMAIL PROTECTED] wrote: Once your readers understand your code, you can add the one-liner and ask for applause This should make it HWN's quotes of the week ! ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Problem with hscurses

2008-09-17 Thread david48
On Tue, Sep 16, 2008 at 5:31 PM, david48 [EMAIL PROTECTED] wrote: the getCh funtion is supposed to return an interpreted Key with values like KeyChar c, KeyReturn, KeyBackspace, etc. but in fact, it only ever returns KeyChar c values ! Nevermind, issue solved

[Haskell-cafe] Problem with hscurses

2008-09-16 Thread david48
the getCh funtion is supposed to return an interpreted Key with values like KeyChar c, KeyReturn, KeyBackspace, etc. but in fact, it only ever returns KeyChar c values ! am I doing anything wrong ? Here's an example program : module Main where import UI.HSCurses.Curses import Text.Printf

Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-07 Thread david48
On Fri, Sep 5, 2008 at 1:05 PM, Janis Voigtlaender [EMAIL PROTECTED] wrote: See John's comment, right there in the online version: The system that generated this webpage didn't have HDBC installed at the time. We'll get that fixed and re-post this chapter. In the meantime, unfortunately, all

[Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-05 Thread david48
In the online version of Real world Haskell, there's a problem with examples in ghci when the module Database.HDBC.Sqlite3 is imported. It goes on like this for all of chapter 21 and 22. Example : ( note: this is not me trying to reproduce the examples, it's an actual copy paste from the site

Re: [Haskell-cafe] question about faulting in Haskell packages ...

2008-08-02 Thread david48
You need to get cabal-install. Here's how I got it working on kubuntu : 1) install GHC 6.8.3 from haskell.org's binaries (kubuntu hardy isn't at 6.8.3 yet) 2) download from hackage : * cabal-install-0.5.1.tar.gz from hackage * HTTP-3001.0.4.tar.gz * zlib-0.4.0.4.tar.gz * Cabal-1.4.0.1.tar.gz

Re: [Haskell-cafe] poll: how can we help you contribute to darcs?

2008-08-01 Thread david48
I'd love to see a git-gui like interface to darcs. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] haddock build failure

2008-07-30 Thread david48
On Wed, Jul 30, 2008 at 10:37 AM, David Waern [EMAIL PROTECTED] wrote: This is a bug in the haddock.cabal file. Haddock 2.1 doesn't support GHC 6.8.3. The next release will, and it will come out soon. I had the same problem, 2.2 fixes it. ___

Re: [Haskell-cafe] announce: Glome.hs-0.3 (Haskell raytracer)

2008-04-26 Thread david48
On Sat, Apr 26, 2008 at 9:33 AM, Andrew Coppin [EMAIL PROTECTED] wrote: Personally, I don't see the point in rendering a couple of million mathematically flat surfaces, What about speed ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread david48
On Jan 23, 2008 12:13 PM, Jules Bean [EMAIL PROTECTED] wrote: Presumably there wasn't a sufficiently good answer available in time for haskell98. Will there be one for haskell prime ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Class/Instance : what am I doing wrong in this example ?

2007-12-20 Thread david48
I'm really inexperienced at this : --- {-# OPTIONS_GHC -fglasgow-exts -funbox-strict-fields -fallow-undecidable-instances -O2 #-} class Gadget g where fInit :: g - a - g data FString = FString !Int !String deriving Show instance Gadget FString where fInit (FString n _) s = FString

Re: [Haskell-cafe] Class/Instance : what am I doing wrong in this example ?

2007-12-20 Thread david48
On Dec 20, 2007 5:03 PM, Claude Heiland-Allen [EMAIL PROTECTED] wrote: You're trying to apply 'take n' to a value of type 'a' ('take n' requires [a]), moreover putting the value of 'take n s' into the FString further constrains its type to be [Char] == String. First of all, thanks a lot for

Re: [Haskell-cafe] Class/Instance : what am I doing wrong in this example ?

2007-12-20 Thread david48
On Dec 20, 2007 5:26 PM, Tillmann Rendel [EMAIL PROTECTED] wrote: at this point fInit has this type: FString - a - FString fInit (FString n _) s = FString n (take n s) but your implementation has this type FString - String - FString These types are incompatible, your fInit

Re: [Haskell-cafe] Class/Instance : what am I doing wrong in this example ?

2007-12-20 Thread david48
On Dec 20, 2007 5:44 PM, david48 [EMAIL PROTECTED] wrote: fString :: Int - FString fString n = FString n Oo do I feel dumb for writing this ! Problem solved :) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Class/Instance : what am I doing wrong in this example ?

2007-12-20 Thread david48
On Dec 20, 2007 5:36 PM, Jules Bean [EMAIL PROTECTED] wrote: 2. Maybe you want lots of possible different as for each g. Then you make a a parameter of the class too. 3. Maybe you want just one particular a for each g. I.e. g determines a. Then you can proceed as for (2), but add the

[Haskell-cafe] Is there some place where I can find the hs-curses doc ?

2007-12-20 Thread david48
It seems I can't find it. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is there some place where I can find the hs-curses doc ?

2007-12-20 Thread david48
On Dec 20, 2007 11:24 PM, Don Stewart [EMAIL PROTECTED] wrote: there's another curses binding in hmp3, http://www.cse.unsw.edu.au/~dons/code/hmp3/Curses.hsc that i keep meaning to package up, but never do. Thanks ! There's quite a lot of stuff I don't understand in Curses.hsc ( the use

Re: [Haskell-cafe] Re: Categories list in French (off-topic?)

2007-12-01 Thread david48
On Nov 30, 2007 9:13 PM, Maurí­cio [EMAIL PROTECTED] wrote: Nice tip. Do you know of a free news server that allows read and post for that group? http://groups.google.com/group/fr.sci.maths/topics?lnk=gschg ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: Waiting for thread to finish

2007-11-30 Thread david48
On Nov 28, 2007 11:07 PM, Maurí­cio [EMAIL PROTECTED] wrote: Sorry, I don't agree. I try to write things in a way that when you read it you can get an intuition on why it's doing what it's doing; even when the That's what comment are for :) generate. So, instead of checking if threads have

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread david48
On Nov 19, 2007 11:27 PM, Thomas Hartman [EMAIL PROTECTED] wrote: the php documentation has user contributed notes where people can leave sniplets of useful code as comments, eg http://www.php.net/manual/en/introduction.php I think this is a very nice feature. I would love to have this on

Re: [Haskell-cafe] Re: Problem linking with GHC 6.8.1

2007-11-07 Thread david48
On Nov 7, 2007 10:44 AM, Simon Marlow [EMAIL PROTECTED] wrote: /usr/local/lib/ghc-6.8.1 (or wherever you installed it). Alternatively you can install a suitable gmp package using your OS's package manager (you didn't say which flavour of Linux you're on). This is what I did, following an

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-07 Thread david48
On Nov 7, 2007 9:05 AM, Ketil Malde [EMAIL PROTECTED] wrote: david48 [EMAIL PROTECTED] writes: Didn't work for me : Installs fine, ghci works fine, but I get linking problems. ld complains about -lgmp Did you try installing any of these? % apt-cache search libgmp libgmp3-dev

[Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
This is a program that works under ghci. GHC was installed using the tarball on hashell.org. When I try to compile the program, it can't link. It used to work with 6.6.1. ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.1 ghc --make -O2 -o edimail Main.hs [1 of 5]

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
On 11/6/07, Alberto Ruiz [EMAIL PROTECTED] wrote: I have the same problem. And gmp.h is also not found when using the FFI. I must add: cc-options: -I/path/to/ghc-6.8.1/gmp unfortunately : $ find /usr/local/lib/ghc-6.8.1 -name *gmp* -ls $ ghc was installed this way : $ tar xvfj

Re: [Haskell-cafe] Problem linking with GHC 6.8.1

2007-11-06 Thread david48
On 11/6/07, david48 [EMAIL PROTECTED] wrote: well I'm not sure where to use the -I/path/to/ghc... so I tried this : $ cd /usr/local/lib/ghc-6.8.1 $ sudo cp -R /home/david/Desktop/ghc-6.8.1/gmp . $ ghc --make -I/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs Linking edimail ... /usr/bin/ld

Re: [Haskell-cafe] Best Linux for Haskell?

2007-11-06 Thread david48
On Nov 7, 2007 6:14 AM, Cale Gibbard [EMAIL PROTECTED] wrote: On 06/11/2007, Tim Docker [EMAIL PROTECTED] wrote: I can confirm that ghc-6.8.1 builds from source completely without fuss on the latest ubuntu (7.10). (... though it took a couple of hours of cpu time :-) Tim I can

[Haskell-cafe] Re: Why can't Haskell be faster?

2007-10-31 Thread david48
I'd like to see Supero and Jhc - compiled examples in the language shootout. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] do

2007-10-15 Thread david48
On 10/14/07, Peter Verswyvelen [EMAIL PROTECTED] wrote: If you want I can dig up my old source code where I converted a random number generator from a purely functional approach to a monadic approach, but I'm not sure reading it would help you, it's creating the code yourself that will be

Re: [Haskell-cafe] do

2007-10-15 Thread david48
On 10/15/07, Peter Verswyvelen [EMAIL PROTECTED] wrote: Yes, exactly, but how does one call the way of programming without monads / do notation then, explicitly passing the object? Does this approach have a name? Or just non-monadic style? the painful style ?

Re: [Haskell-cafe] do

2007-10-14 Thread david48
On 10/14/07, [EMAIL PROTECTED] I know that asking helpful humans is nicer than reading docs, but the latter is usually more instructive, and often more efficient. Sorry, but from my newbie point of view, I think the docs are sometimes poor and lacking. After seeing the docs, I might want to ask

Re: [Haskell-cafe] On the verge of ... giving up!

2007-10-14 Thread david48
On 10/14/07, Lennart Augustsson [EMAIL PROTECTED] wrote: You don't need to unsubscribe. Just avoid posting things that are totally wrong (at least without a warning). How would he know they're totally wrong ? ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Haskell and State Monad.

2007-09-12 Thread david48
On 9/12/07, VinyleEm [EMAIL PROTECTED] wrote: projects there, some of them being incomplete. Could you please suggest me some project, from which i can learn the State Monad. xmonad perhaps ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] how to make haskell faster than python at finding primes?

2007-08-06 Thread david48
On 8/6/07, Vimal [EMAIL PROTECTED] wrote: I am unable to see how exactly this will run. Given that primes is an infinite list, and that when it reaches numbers say, as large as 1, it will have to keep track of all the numbers (essentially prime numbers, which is the answer), whose

Re: [Haskell-cafe] Re: monad subexpressions

2007-08-03 Thread david48
On 8/3/07, Neil Mitchell [EMAIL PROTECTED] wrote: This is how I understand it: Can you use (-) outside of a do block? b f (- a) b do { ta -a; f ta } or b a = \ta - f ta What are the semantics of do b f (- a) do b a = \ta - f ta Given: if (- a) then f (- b) else g (- c) a = \ta -

Re: [Haskell-cafe] Re: Re: monad subexpressions

2007-08-03 Thread david48
Sorry for the double post, I posted with the wrong email address and haskell-cafe rejected it. On 8/3/07, Neil Mitchell [EMAIL PROTECTED] wrote: Right. In effect, as a matter of fact, the notation x - a would become equivalent to let x = (- a) Hmm, interesting. Consider:

Re: [Haskell-cafe] Re: Re: Re: monad subexpressions

2007-08-03 Thread david48
On 8/3/07, Neil Mitchell [EMAIL PROTECTED] wrote: temp - a let x = temp if you write : let x = (-a):x is it possible that is desugars into : temp -a let x = temp:x that would'nt work ? I realize I may be asking dumb questions but being dumb never harmed anyone so :) Also : do case x of

Re: [Haskell-cafe] Monad Description For Imperative Programmer

2007-08-01 Thread david48
On 8/1/07, Andrew Wagner [EMAIL PROTECTED] wrote: This seems wrong to me. A monad is, first and foremost, a type constructor class. I'm not sure how you can really compare that to a loop. But perhaps the easiest way to test your definition would be to ask this: How is, for example, the Maybe

Re: [Haskell-cafe] Monad Description For Imperative Programmer

2007-08-01 Thread david48
On 8/1/07, Andrew Wagner [EMAIL PROTECTED] wrote: you can imagine each of the calls to putStrLn gets implicitly passed a variable (here, the world ) and they happen in succession so it's like a loop. It breaks down further as soon as you add any amount of complexity to the code as well.

Re: Re : Re : Re : [Haskell-cafe] Indentation woes

2007-08-01 Thread david48
On the topic of indenting, it would be nice if there was a way to tell the compiler the size of the tab characters. The way it is now, I have to use space characters to indent. It's not really a problem though. ___ Haskell-Cafe mailing list

Re: Re : Re : Re : [Haskell-cafe] Indentation woes

2007-08-01 Thread david48
On 8/1/07, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On Aug 1, 2007, at 10:05 , david48 wrote: On the topic of indenting, it would be nice if there was a way to tell the compiler the size of the tab characters. The way it is now, I have to use space characters to indent

Re: [Haskell-cafe] Re: HDBC or HSQL

2007-07-31 Thread david48
On 7/30/07, John Goerzen [EMAIL PROTECTED] wrote: On 2007-07-25, david48 [EMAIL PROTECTED] wrote: HDBC Supports Mysql only through ODBC :( This is true, unless some MySQL hacker would like to contribute a native module. I don't use MySQL myself and haven't had the time to write

Re: [Haskell-cafe] HDBC or HSQL

2007-07-25 Thread david48
On 7/25/07, George Moschovitis [EMAIL PROTECTED] wrote: I am a Haskell newbie and I would like to hear your suggestions regarding a Database conectivity library: HSQL or HDBC ? which one is better / more actively supported? HDBC Supports Mysql only through ODBC :(