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
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
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
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?
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.
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.
.
--- 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
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?
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
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
:
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
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
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
+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
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:
: [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
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
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
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
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
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
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
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
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
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
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
- 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
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
.
(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
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,
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
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
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
[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
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
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
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
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
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
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
40 matches
Mail list logo