[Haskell-cafe] (no subject)

2011-05-26 Thread Gregory Propf
As you my friend I invite you to visit my own site first!. http://prospero.ch/friends_links.php?uGIS=45ru4 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Email spam from my account on May 26, 2011

2011-05-26 Thread Gregory Propf
I just discovered that some evil spammer has somehow gotten my contacts list and used it to send out a bunch of spam. This is just to notify you that if you get an email from me on May 26, 2011 (other than this one or one like it - the problem was more extensive than I first thought) it

[Haskell-cafe] Monadic function purity

2010-11-24 Thread Gregory Propf
I have a pretty basic question.  I've been wondering about whether monadic functions that do NOT us IO can be pure or not.  There seems to be some confusion on this topic on the web.  I'm especially interested in whether they can be memoized.  It seems to me that something like a function in

[Haskell-cafe] DPH and GHC 7.0.1

2010-11-19 Thread Gregory Propf
I was hoping to play around with Data.Parallel.Haskell (dph) but noticed that it seems to have been exiled from ghc 7.0.1 which I just installed.  It also doesn't seem to be in cabal.  Anybody know how to use dph with 7.0.1 or has it been abandoned or something?

[Haskell-cafe] How to get a list of constructors for a type?

2009-12-30 Thread Gregory Propf
Say I have something like data DT a = Foo a | Bar a | Boo a I want something like a list of the constructors of DT, perhaps as [TypeRep].  I'm using Data.Typeable but can't seem to find what I need in there.  Everything there operates over constructors, not types.

[Haskell-cafe] Perhaps you haven't installed the dyn libraries

2009-12-29 Thread Gregory Propf
I'm trying out the dynamic linking in GHC 6.12 and getting this message a lot for different libraries.  I assume I need to rebuild them with different ghc options in the cabal files and have tried -shared, -dynamic and -fPIC but with no luck.  Is there something I'm missing.

Re: [Haskell-cafe] Upgraded to GHC 6.12 and can't find anything

2009-12-28 Thread Gregory Propf
. --- On Sun, 12/27/09, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: From: Ivan Lazar Miljenovic ivan.miljeno...@gmail.com Subject: Re: [Haskell-cafe] Upgraded to GHC 6.12 and can't find anything To: Gregory Propf gregorypr...@yahoo.com Cc: Haskell-Cafe haskell-cafe@haskell.org Date: Sunday

[Haskell-cafe] Upgraded to GHC 6.12 and can't find anything

2009-12-27 Thread Gregory Propf
I finally compiled and installed GHC 6.12 on my Linux system and it seems to be failing to find a lot of things. Notably these import Control.Monad import Control.Monad.State import Control.Monad.Trans import Control.Parallel Worked fine under 6.10. Any clues?

Re: [Haskell-cafe] Introspection on types.

2009-10-02 Thread Gregory Propf
Thanks, I'll check out Data and Typeable --- On Thu, 10/1/09, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: From: Brandon S. Allbery KF8NH allb...@ece.cmu.edu Subject: Re: [Haskell-cafe] Introspection on types. To: Gregory Propf gregorypr...@yahoo.com Cc: Brandon S. Allbery KF8NH allb

[Haskell-cafe] Introspection on types.

2009-10-01 Thread Gregory Propf
Is there a way to tell, let's say, how many constructors there are for a type?  Or do I need one of the haskell extensions I've read about? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: [Haskell-beginners] map question

2009-09-18 Thread Gregory Propf
: From: Jon Fairbairn jon.fairba...@cl.cam.ac.uk Subject: [Haskell-cafe] Re: [Haskell-beginners] map question To: haskell-cafe@haskell.org Date: Friday, September 18, 2009, 2:09 AM Ketil Malde ke...@malde.org writes: Gregory Propf gregorypr...@yahoo.com writes: Heh, perhaps we should petition

Re: [Haskell-cafe] Can't install Haskell Platform (Ubuntu 9.02)

2009-09-17 Thread Gregory Propf
Yes that worked. --- On Wed, 9/16/09, Paulo Tanimoto tanim...@arizona.edu wrote: From: Paulo Tanimoto tanim...@arizona.edu Subject: Re: [Haskell-cafe] Can't install Haskell Platform (Ubuntu 9.02) To: Gregory Propf gregorypr...@yahoo.com Cc: Haskell-Cafe haskell-cafe@haskell.org Date: Wednesday

[Haskell-cafe] Trouble installing leksah

2009-09-17 Thread Gregory Propf
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 dependencies are missing: glib =0.10, gtk =0.10, gtksourceview2 =0.10.0 I am aware

Re: [Haskell-cafe] Trouble installing leksah

2009-09-17 Thread Gregory Propf
+hask...@gmail.com wrote: From: david48 dav.vire+hask...@gmail.com Subject: Re: [Haskell-cafe] Trouble installing leksah To: Gregory Propf gregorypr...@yahoo.com Cc: Haskell-Cafe haskell-cafe@haskell.org Date: Thursday, September 17, 2009, 12:39 AM On Thu, Sep 17, 2009 at 9:01 AM, Gregory Propf

[Haskell-cafe] Re: [Haskell-beginners] map question

2009-09-17 Thread Gregory Propf
Remember that there is asymmetry between (+) and (-).  The former has the commutative property and the latter does not so: (+) 3 4 = 7 and (+) 4 3 = 7 but (-) 3 4 = -1 and (-) 4 3 = 1 --- On Thu, 9/17/09, Tom Doris tomdo...@gmail.com wrote: From: Tom Doris tomdo...@gmail.com Subject:

Re: [Haskell-cafe] Re: [Haskell-beginners] map question

2009-09-17 Thread Gregory Propf
: [Haskell-cafe] Re: [Haskell-beginners] map question To: Gregory Propf gregorypr...@yahoo.com Cc: Tom Doris tomdo...@gmail.com, Haskell-Cafe haskell-cafe@haskell.org, joostkrem...@fastmail.fm Date: Thursday, September 17, 2009, 9:04 AM (-) happens to be the only prefix operator in haskell, it also

[Haskell-cafe] Hopefully simple monad question

2009-09-16 Thread Gregory Propf
I'm playing around with a little program that implements a simple virtual machine.  I want to use a monad to represent machine state.  I created a data type for the machine (VM) and a monadic type for the monadic computations using it.  I declared this an instance of MonadState and Monad and

[Haskell-cafe] GHC threaded runtimes and pure functions

2009-09-16 Thread Gregory Propf
One of the things I liked about Haskell was the notion of pure functions and the fact that they can be, in theory, automatically parallelized on multicore hardware. I think this will become a huge deal in a few years as cores multiply.  My question is simply this: under GHC is this what really

Re: [Haskell-cafe] GHC threaded runtimes and pure functions

2009-09-16 Thread Gregory Propf
functions To: Gregory Propf gregorypr...@yahoo.com Cc: Haskell-Cafe haskell-cafe@haskell.org Date: Wednesday, September 16, 2009, 6:29 AM Hello Gregory, Wednesday, September 16, 2009, 5:17:01 PM, you wrote: no. additional threads are launched for i/o system and, as you requested by -N2

[Haskell-cafe] Can't install Haskell Platform (Ubuntu 9.02)

2009-09-16 Thread Gregory Propf
I'm trying to install the Haskell Platform.  I'm using Ubuntu 9.02 and GHC 6.10.4 on a 64 bit AMD and keep getting this crap when I do 'make install'.  The stuff builds OK and the script in question does indeed exist.  Anybody know what this is.  I've looked online and none of the other people

Re: [Haskell-cafe] Re: A thought about liberating Haskell's syntax

2009-09-16 Thread Gregory Propf
I just rejoined the list and am a bit new to things here anyway but this sounds a lot Lisp's old macro system a little. I'm guessing you're not proposing runtime execution of runtime generated code though.  I don't know much about Lisp internals but I suspect Lisp runtimes are quite different

Re: [Haskell-cafe] gtk2hs problem

2007-11-21 Thread Gregory Propf
because it does seem faster that way on my dual core machine. I guess I need to learn about how threading works in ghc. Duncan Coutts [EMAIL PROTECTED] wrote: On Tue, 2007-11-20 at 15:18 -0800, Gregory Propf wrote: I'm using the Gtk.timeoutAddFull function to do the animation. Are you using

[Haskell-cafe] gtk2hs problem

2007-11-20 Thread Gregory Propf
I've written a small program using the gtk2hs library and it crashes at unpredictable times with X windows errors like the one below. I looked for the messages online and found various people talking about buggy gtk libraries but no clear solutions. I don't know a lot about X windows or what

[Haskell-cafe] unknown RTS option: -N2

2007-09-15 Thread Gregory Propf
I've built a program with the -threaded option using ghc. This option is supposed to link your program to the threaded runtime with support for multicore CPUS (mine is a dual core). The program pukes with the message in the subject line when I try to use the -N option to tell it to use both

[Haskell-cafe] Re:Explaining monads

2007-08-14 Thread Gregory Propf
Sorry to spam you Jeff, again I sent my email to the poster rather than the list. I'm using Yahoo beta webmail and don't see a way to set it to reply to the list rather than the originator. Anyway, this was my post: Hence the need to perform a run operation like runIdentity, evalState or

Re: [Haskell-cafe] Explaining monads

2007-08-13 Thread Gregory Propf
I made this mistake myself at first too. It seems that the Monad = side effect machine error is common to Haskell newbies. Probably to do with the fact that the first thing every programmer wants to do is write a hello world program and for that you need the IO Monad which requires some

Re: Fw: [Haskell-cafe] IO within parser

2007-08-12 Thread Gregory Propf
- Original Message From: Bulat Ziganshin [EMAIL PROTECTED] To: Gregory Propf [EMAIL PROTECTED] Cc: haskell-cafe@haskell.org Sent: Saturday, August 11, 2007 11:33:00 PM Subject: Re: Fw: [Haskell-cafe] IO within parser Hello Gregory, Sunday, August 12, 2007, 9:32:04 AM, you wrote: I've been

[Haskell-cafe] IO within parser

2007-08-11 Thread Gregory Propf
I've been struggling with writing a parser that needs to parse include files within source files. So far I cannot get this to work (in reality to get work done I wrote a kludge that returns a list of include filenames to be run later in a pure IO function. I realized that this just amounted

Fw: [Haskell-cafe] IO within parser

2007-08-11 Thread Gregory Propf
. (Note: I accidentally sent this to Andrew instead of the list originally) - Original Message From: Andrew Coppin [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Saturday, August 11, 2007 1:25:16 PM Subject: Re: [Haskell-cafe] IO within parser Gregory Propf wrote: I've been struggling

[Haskell-cafe] Simple newbie question - Int and Integer

2007-07-12 Thread Gregory Propf
So what the hell is the difference between them? Int and Integer. They aren't synonyms clearly. What's going on? Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,

Re: [Haskell-cafe] function unique

2007-07-11 Thread Gregory Propf
Yeah, I didn't see that part of the email, sorry. - Original Message From: Alexteslin [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Wednesday, July 11, 2007 8:59:33 AM Subject: Re: [Haskell-cafe] function unique Thans Gregory, But I sticked to the original solution because the

Re: [Haskell-cafe] function unique

2007-07-10 Thread Gregory Propf
Well there's this approach. Granted you need to split the input list into *both* args of the fold (i.e. the input list is really [1,4,5,3] but you can get this with head and tail). I'm just learning about the fold family myself. - Greg Prelude foldl (\a b - if (any (\x - x == b) a) then a

Re: [Haskell-cafe] function unique

2007-07-10 Thread Gregory Propf
There was a typo in my last email. The input list is [1,4,5,3,3,4] not [1,4,5,3]. - Greg - Original Message From: Alexteslin [EMAIL PROTECTED] To: haskell-cafe@haskell.org Sent: Tuesday, July 10, 2007 1:40:56 PM Subject: [Haskell-cafe] function unique Hi, i am a beginner to Haskell

Re: [Haskell-cafe] Re: Parsers are monadic?

2007-07-02 Thread Gregory Propf
[EMAIL PROTECTED] To: Gregory Propf [EMAIL PROTECTED] Cc: haskell-cafe@haskell.org Sent: Monday, July 2, 2007 1:40:09 AM Subject: Re: [Haskell-cafe] Re: Parsers are monadic? Gregory Propf wrote: Thanks, that was helpful. I didn't realize that there were pure functional monads. Actually, it's

[Haskell-cafe] Very simple parser

2007-07-02 Thread Gregory Propf
As a programming exercise I'm trying to use the State monad to create a simple parser. It's for a very simple assembly language for a simple virtual machine. The state is a string of instructions. I want to be able to call something like getNextInstruction to pull out the next instruction

Re: [Haskell-cafe] Very simple parser

2007-07-02 Thread Gregory Propf
I hadn't seen that before, thanks. My code wouldn't be that useful as it depends on some of my datatypes. I don't know some basic things here since I'm so new to Haskell. For example, am I to assume that I need to create my own instance of State and then define get and put for it? Some of

Re: [Haskell-cafe] Very simple parser

2007-07-02 Thread Gregory Propf
This was a bit baffling too. It appears that there's an implied argument to runTick. This also works and makes it more explicit. I suppose the compiler just works out that the only place to put the 'n' is after tick. runTick :: Int - (String,Int) runTick n = runState tick n - Original

Re: [Haskell-cafe] Very simple parser

2007-07-02 Thread Gregory Propf
Chevalier [EMAIL PROTECTED] To: Gregory Propf [EMAIL PROTECTED] Cc: haskell-cafe@haskell.org Sent: Monday, July 2, 2007 5:37:41 PM Subject: Re: [Haskell-cafe] Very simple parser On 7/2/07, Gregory Propf [EMAIL PROTECTED] wrote: This was a bit baffling too. It appears that there's an implied

Re: [Haskell-cafe] Re: Parsers are monadic?

2007-06-30 Thread Gregory Propf
Thanks, that was helpful. I didn't realize that there were pure functional monads. -- Monadic just means a calculation using a mathematical structure called a monad. All impure calculations in Haskell are monadic, but not all monadic

[Haskell-cafe] Parsers are monadic?

2007-06-29 Thread Gregory Propf
First post. I'm a newbie, been using Haskell for about a week and love it. Anyway, this is something I don't understand. Parsers are monadic. I can see this if the parser is reading from an input stream but if there's just a block of text can't you just have the parser call itself