2009/10/6 Mikhail Glushenkov the.dead.shall.r...@gmail.com:
Hi Paul,
Paul Moore p.f.moore at gmail.com writes:
Is there a way I could have specified that I want the global install
directory in D:\Apps\Haskell? I guess I could hack my cabal\config
file (and presumably change PATH
2009/10/6 Mikhail Glushenkov the.dead.shall.r...@gmail.com:
Hi Paul,
On Tue, Oct 6, 2009 at 9:11 AM, Paul Moore p.f.mo...@gmail.com
The ugliness (a bad word, I agree) was the need to change multiple
items - (at least) 2 places in the config file and (presumably) the
PATH entry.
Is that all
2009/10/6 Mikhail Glushenkov the.dead.shall.r...@gmail.com:
Hi Paul,
Paul Moore p.f.moore at gmail.com writes:
Is there a way I could have specified that I want the global install
directory in D:\Apps\Haskell? I guess I could hack my cabal\config
file (and presumably change PATH
2009/10/6 Bertram Felgenhauer bertram.felgenha...@googlemail.com:
Paul Moore wrote:
grep global -A7 D:\Documents and Settings\uk03306\Application
Data\cabal\config
install-dirs global
-- prefix: D:\\Apps\\Haskell\\Cabal
^^^
You should remove the '-- '. Lines beginning
As it says in the subject, how do I remove a package that I installed
(with the --user flag) via cabal?
Come to that, how do I list the packages I've installed via cabal?
cabal list --installed includes all the GHC standard library (which I
didn't install) and it doesn't seem to support a --user
2009/10/6 John Van Enk vane...@gmail.com:
you want:
ghc-pkg unregister [package name]
and
ghc-pkg list
Thanks. I wouldn't have found that by myself.
Unfortunately, having issued
ghc-pkg unregister mersenne-random-1.0
I still see the code present:
dir
2009/10/6 John Van Enk vane...@gmail.com:
Are you actually trying to remove the bits from the hard drive, or is that
something to fix a different problem you're having. If it's a different
problem, perhaps you could ask that as well?
Yes, I'm trying to remove the bits from the disk.
I did a
2009/10/6 Peter Robinson thaldy...@gmail.com:
2009/10/6 Paul Moore p.f.mo...@gmail.com:
2009/10/6 John Van Enk vane...@gmail.com:
Are you actually trying to remove the bits from the hard drive, or is that
something to fix a different problem you're having. If it's a different
problem, perhaps
I've installed the Haskell Platform to a non-default location
(D:\Apps\Haskell) to avoid some of the Win7 funniness over writing to
C:\Program Files. However, even though I've done this, the cabal
global install directory is still C:\Program Files\haskell. This has
been added to my PATH and is
I notice that System.Random.Mersenne has no randomR variants. Is there
a reason for this, or is it just an oversight? It makes porting code
from System.Random a little more complicated than it needs to be. I
know it's possible to write a function mapping a Double (or other
value, as appropriate)
2009/10/5 Don Stewart d...@galois.com:
p.f.moore:
I notice that System.Random.Mersenne has no randomR variants. Is there
a reason for this, or is it just an oversight? It makes porting code
from System.Random a little more complicated than it needs to be. I
know it's possible to write a
I'm still playing round with my random dieroll generation program. In
doing so, I just hit a segmentation fault (I didn't think Haskell
could *cause* a segfault!) I'm sure it's my code - I got this to
compile by fiddling with types until the errors (which I didn't
understand) went away. Certainly
2009/9/27 andy morris a...@adradh.org.uk:
mersenne-random uses the FFI, so it's probably that. I just ran your
code with mersenne-random-1.0 and didn't get a segfault. What version
are you using?
Not entirely sure, I just did a cabal install a short while back.
cabal list mersenne
Warning:
2009/8/5 Yitzchak Gale g...@sefer.org:
Dmitry Olshansky wrote:
My measurements show that...
(-O2 gives approx 2 time impovements).
...using RandomGen and State monad to generate a list gives at least 4 times
improvements (on 1 000 000 items).
You earlier said:
this takes over twice as
2009/7/31 Paul Moore p.f.mo...@gmail.com:
2009/7/31 Gregory Collins g...@gregorycollins.net:
Paul Moore p.f.mo...@gmail.com writes:
How would I efficiently write a function in Haskell to count
occurrences of unique elements in a (potentially very large) list? For
example, given the list
2009/8/1 Ketil Malde ke...@malde.org:
Paul Moore p.f.mo...@gmail.com writes:
What am I doing wrong here? I'd have expected compiled Haskell to be
faster than interpreted Python, so obviously my approach is wrong.
Two things from my experience: Python associative arrays are fast, and
Haskell
How would I efficiently write a function in Haskell to count
occurrences of unique elements in a (potentially very large) list? For
example, given the list [1,2,3,4,5,3,4,2,4] I would like the output
[[1,1], [2,2], [3,2], [4,3], [5,1]] (or some equivalent
representation).
Clearly, this won't be
2009/7/31 Gregory Collins g...@gregorycollins.net:
Paul Moore p.f.mo...@gmail.com writes:
How would I efficiently write a function in Haskell to count
occurrences of unique elements in a (potentially very large) list? For
example, given the list [1,2,3,4,5,3,4,2,4] I would like the output
2009/1/18 Matti Niemenmaa matti.niemenmaa+n...@iki.fi:
Announcing the release of Coadjute, version 0.0.1!
[...]
Portability is striven towards in two ways:
Is it intended to work on Windows? (I don't want to spend time
downloading and trying to set it up if it was never intended to be
2009/1/16 Derek Elkins derek.a.elk...@gmail.com:
I think the name issue is a red herring. The real issue is that, after
being confronted by a concept with an unfamiliar name, it can be very
difficult to figure out the nature of the concept. That is, it's not the
name itself that's the problem,
2009/1/15 Derek Elkins derek.a.elk...@gmail.com:
On Thu, 2009-01-15 at 18:27 +, Lennart Augustsson wrote:
On Thu, Jan 15, 2009 at 6:04 PM, Paul Moore p.f.mo...@gmail.com wrote:
Mathematical precision isn't appropriate in all disciplines.
That's very true. But programming is one where
2009/1/16 Apfelmus, Heinrich apfel...@quantentunnel.de:
How to learn? The options are, in order of decreasing effectiveness
university course teacher in person
book irc
mailing list
online tutorial
haskell wiki
haddock documentation
2009/1/16 Andrew Coppin andrewcop...@btinternet.com:
Either way, wherever the description gets put, just saying associativity
means that (x + y) + z = x + (y + z) is insufficient. Sure, that's the
*definition* of what it is, but we should point out that associativity
means that the ordering of
2009/1/15 Lennart Augustsson lenn...@augustsson.net:
Why do people think that you should be able to understand everything
without ever looking things up?
Understand, no, but have an intuition about, very definitely yes. In
mathematics (and I speak as someone with a mathematical degree, so if
I
2008/12/18 Brandon S. Allbery KF8NH allb...@ece.cmu.edu:
On 2008 Dec 18, at 9:13, John Goerzen wrote:
Some ideas in Haskell are easy to integrate into other languages: see
list comprehensions in Python. I don't see Perl picking up pervasive
laziness anytime soon, nor Python compile-time type
2008/6/20 Alistair Bayley [EMAIL PROTECTED]:
Having just taken a closer took at what Oracle Instant Client is, I
suspect that you might have some trouble getting Takusen to compile
against it. The Instant Client lacks header files, while Takusen's FFI
imports specify oci.h. I don't know what
On 04/03/2008, Alan Carter [EMAIL PROTECTED] wrote:
http://the-programmers-stone.com/2008/03/04/a-first-haskell-experience/
That was an interesting read. Thanks for posting it. I also liked the
tale of the BBC ULA - it reminded me of a demo I saw once at an Acorn
show, where they had a RISC PC
On 21/01/2008, Bryan O'Sullivan [EMAIL PROTECTED] wrote:
John, Don and I are pleased to announce the beginning of the public beta
programme for our upcoming book, Real World Haskell. For further
details, please see the following blog entry:
On 22/01/2008, Bryan O'Sullivan [EMAIL PROTECTED] wrote:
Paul Moore wrote:
I'm posting here because there doesn't seem to be an overall comment
section, but the TOC seems to cover less ground than I expected. Is
the TOC meant to be complete?
No, it's less than a third of the whole thing
On 10/12/2007, Henning Thielemann [EMAIL PROTECTED] wrote:
On Mon, 10 Dec 2007, Dan Piponi wrote:
When someone comes to me and says I have this Python script that
scans through these directories and finds the files that meet these
criteria and generates a report based on this template,
On 28/11/2007, Ben Franksen [EMAIL PROTECTED] wrote:
It was fun, too. For instance, the OP's question reminded me of a little
generic wrapper I wrote -- more or less for my own amusement -- during the
course of this project. It outputs dots during an operation that might take
a little longer
On 15/07/07, Andrew Coppin [EMAIL PROTECTED] wrote:
I guess because in most normal programming languages you can do I/O
anywhere you damn like, it doesn't occur to most programmers that it's
possible to make a seperation. (Most seem to realise that, e.g., mixing
business logic with GUI code is a
On 10/07/07, Andrew Coppin [EMAIL PROTECTED] wrote:
Interesting... I tried to put a pound sign on my web page, and it came
out garbled, so I had to replace it with pound;...
You may need to specify a content encoding in the HTML header. For
that, you need to know the encoding your HTML file is
On 05/07/07, Jonathan Cast [EMAIL PROTECTED] wrote:
Can't say I agree. I've been learning Python, and have been very un-impressed
so far with its library coverage, which I would rate no better than (in terms
of the POSIX bindings, worse than) Haskell.
It probably depends on your perspective.
On 05/07/07, Bulat Ziganshin [EMAIL PROTECTED] wrote:
* Gzip compress a data stream
zlib
* Send an email
* Parse an ini file
The one thing off the top of my head that Python had was Base64, but that's
MissingH
* Calculate the MD5 checksum of a file
crypto
Thanks.
The need I had for
On 05/07/07, Paul Moore [EMAIL PROTECTED] wrote:
The need I had for these is no longer current, but sometime I'll try
an experiment and see how easy it is, on a relatively clean Windows
box with just GHC installed, to grab and use these libraries.
Just for fun I had a go with crypto:
- Found
On 05/07/07, Dave Bayer [EMAIL PROTECTED] wrote:
How's this, only one line is specific to your problem:
[...]
md5 - doShell md5 -q md5.hs
Doesn't work on my (Windows) PC, where I have no md5 command
available. While I agree in theory with the idea of combining focused
tools, it's a
On 05/07/07, Neil Mitchell [EMAIL PROTECTED] wrote:
- But no simple examples, and the haddoc docs show APIs, but not usage
examples!
Complain to the author.
Yes, that's completely unrelated to library availability issues. I got
off the topic, in all my ranting. Sorry.
Part of the problem
On 06/06/07, Steffen Mazanek [EMAIL PROTECTED] wrote:
Hello,
is there a function f::[a-b]-a-[b] in the libraries? Couldn't find one
using hoogle although this seems to be quite a common thing...
I asked basically this a few months back. Have a look at
On 05/06/07, Michael T. Richter [EMAIL PROTECTED] wrote:
Oops. I spoke too soon. It works ... for about a third of the file. It
then loses its mind in the middle of a do-block (in a sizable chunk of code)
and doesn't regain it until the next code begin/end pairing ends.
There is a fix
On 19/04/07, Marc Weber [EMAIL PROTECTED] wrote:
There is only one library: hdirect. But I don't know its status there
have been some posts and some authors may have chnaged it.
I'd suggest grepping some mailinglist archives (you can find them all on
haskell.org) or wait till someone else gives
On 03/03/07, John Goerzen [EMAIL PROTECTED] wrote:
I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a
few days ago, there have been some improvements:
I've had a little look, and it looks nice. However, as a mainly
Windows user, I'd be interested to know - does it work on
I'm still fiddling with simple database queries using Takusen. One
question I have is regarding strictness. I've just been reading
Haskell IO for Imperative Programmers and loved the idea that
laziness (rather than monads) is what makes IO in Haskell so simple.
What I'm not sure about, is whether
On 02/03/07, Bayley, Alistair [EMAIL PROTECTED] wrote:
[...]
What you're interested in, I think, is what the iteratee does with the
data.
That's correct.
In your case, it conses each username onto the front of a list,
which is initially empty. Because you're using result (not result') this
On 02/03/07, Bayley, Alistair [EMAIL PROTECTED] wrote:
There's a big difference between getContents and Takusen: getContents
has a non-trivial implementation (using unsafeInterleaveIO) that allows
it to return data lazily. Takusen has no such implementation.
... ie, there's deep dark magic
I'm after a function, sort of equivalent to map, but rather than
mapping a function over a list of arguments, I want to map a list of
functions over the same argument. The signature would be [a - b] - a
- [b], but hoogle didn't come up with anything.
It seems like an obvious analogue of map, so
On 20/02/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote:
p.f.moore:
I'm after a function, sort of equivalent to map, but rather than
mapping a function over a list of arguments, I want to map a list of
functions over the same argument. The signature would be [a - b] - a
- [b], but hoogle
On 20/02/07, David Roundy [EMAIL PROTECTED] wrote:
It's rather a small function to bother putting in the libraries, and I
think better expressed using map directly:
rmap fs x = map ($ x) fs
Yes. Now that I know the idiom, there's clearly little point in having
a named function for it.
On 09/02/07, Paul Moore [EMAIL PROTECTED] wrote:
It probably wouldn't be hard to write a reasonably general wrapper for
this, but it's a bit late now so I'll leave that as an exercise :-)
Sigh. I tried to set this up (using a little external C routine to do
the API grunt work) and it doesn't
On 09/02/07, John Ky [EMAIL PROTECTED] wrote:
I noticed on Windows that when I use IO functions that write to stdout when
the process is lacking a console, those functions throw an IOError. I'm not
sure if this also occurs for stderr because I haven't tried it.
This is Windows standard
On 01/02/07, Slavomir Kaslev [EMAIL PROTECTED] wrote:
Even sweeter is easily accessing .Net Framework from
ghc, especially for Windows users. .Net Framework is huge. It is
de-facto _the_ windows framework. Are there any projects going in this
direction?
That would indeed be nice - it would
On 31/01/07, Alexy Khrabrov [EMAIL PROTECTED] wrote:
Wouldn't it be nice -- in case it doesn't exist already -- a[n
O'Reilly[-like]] Haskell Cookbook? That would be the best way to
learn Haskell. I've found a wikibook on Haskell, but I look for a big
bag of small, self-contained programs.
On 31/01/07, Joe Re [EMAIL PROTECTED] wrote:
Instead of having someone work in solitude with occasional mailings back and
forth on the list, I would rather have an open wiki for the collection of
ideas from everyone. Then, if you really wanted, a single person can use
those to create an 'editor
On 31/01/07, Michael T. Richter [EMAIL PROTECTED] wrote:
I disagree with this part. Books written by committee lack cohesion
unless they have an overbearing editor at the helm. What I've seen on the
Wiki as regards idioms, standard practices, etc. -- and this is true of
every language wiki
I'm continuing (in my occasional spare time) to try to write a simple
database query in takusen.
The query is OK now, but I'm struggling with error handling. I have a
simple error handler
catcher :: DBException - DBM mark Session ()
catcher x = do
liftIO $ putStrLn $ show x
All it does
On 29/01/07, Michael T. Richter [EMAIL PROTECTED] wrote:
I started, given that I could actually have the free time now, looking at
Haskell again about a year ago. (It's a major point in Haskell's favour
that it always stuck around in my mind after first encountering and
rejecting it,
On 29/01/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote:
We found these categories to be useful and robust, and I think they'd be useful
for the new
suite. In particular, the imaginary suite is useless for (say) choosing a
compiler, but
fantastic for exposing particular weak spots. But if
On 07/01/07, Kirsten Chevalier [EMAIL PROTECTED] wrote:
I don't know, but I would suspect that the page isn't linked from
anywhere, and that's why it's not showing up in the search results.
MediaWiki has a concept of namespaces - Talk:SantaClausProblem is in
the Talk namespace - maybe that
On 1/3/07, Seth Gordon [EMAIL PROTECTED] wrote:
David House wrote:
So I can't just tell someone who's just starting to learn Haskell that
f $ g y is equivalent to f (g y); I have to say those two are
*almost always* equivalent, but if you use $ and the compiler complains
about not being
On 1/3/07, Neil Mitchell [EMAIL PROTECTED] wrote:
As for beginner issues with rank-2 types, I've been learning Haskell
for years now, and have never felt the need for a rank-2 type. If the
interface for some feature requires rank-2 types I'd call that an
abstraction leak in most cases. It
On 12/29/06, Conor McBride [EMAIL PROTECTED] wrote:
Or is your issue more superficial? Is it just that
* (my-flatten '(1 (2 (3 4) 5)))
(1 2 3 4 5)
looks shorter than
so
*Main flat [E 1, S[E 2, S[E 3, E 4], E 5]]
[1,2,3,4,5]
Speaking as a relative newbie to Haskell, the thing that
I'm thinking around the design of a couple of things, and am hitting
an issue which I know how I would solve in Python, but I'm not sure
what a good idiomatic Haskell approach would be.
The problem is that I am trying to write a function which takes a
rather large number of arguments, many of
On 12/27/06, Neil Mitchell [EMAIL PROTECTED] wrote:
Only a few of the standard libraries are useful unless you are doing
something specific. i.e. Data.Maybe is generally useful, but
Control.Monad.State is only useful if you are using a state monad.
Hmm, I'm not sure I agree with you here. Yes,
On 12/27/06, Kirsten Chevalier [EMAIL PROTECTED] wrote:
(Personally I wouldn't find it at all
useful to have a printed copy of the library docs, even though I do
like printed manuals, because I only ever consult them to look up a
specific function or type, which is a lot easier to do in the
On 12/20/06, Bayley, Alistair [EMAIL PROTECTED] wrote:
To build a program, you need to do
ghc --make db.hs -o db D:\Oracle\Ora92\bin\oci.dll
(put the path to your oci.dll here).
This compiles your program, and links it with oci.dll to get the
Oracle externals resolved.
I've been
On 12/12/06, Paul Moore [EMAIL PROTECTED] wrote:
Should be, but isn't, unfortunately. The Setup.hs file includes some
code defining configPG etc, but there's nothing I can see for the user
control how it works. Maybe something in the cabal infrastructure
handles this, but I've not had time yet
On 12/14/06, Neil Mitchell [EMAIL PROTECTED] wrote:
Hi
* Give tips on how to answer questions
+ Ok. we can put up an article here. Some suggestions:
- No questions are bad questions
- Code should come with examples of how to run it
On 12/13/06, Bayley, Alistair [EMAIL PROTECTED] wrote:
From: Paul Moore [mailto:[EMAIL PROTECTED]
This appears to be caused by ghci/runhaskell wanting to link the entire
library at once, rather than just the modules you're using. I don't know
if this is a bug or a feaure with ghci; anybody else
On 12/12/06, Claus Reinke [EMAIL PROTECTED] wrote:
if you're using Haskell at all, you *are* the Haskell community.
[..lots of I searched, I found, I tried, I got this error, I thought,
I tried this workaround, I got to this point, now I'm stuck here..]
I just wanted to comment that I
On 12/12/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote:
bulat.ziganshin:
there is a great wikipage on creating your own library, thanks to Donald,
who is started it. but there is no even simpler page about using libraries.
while we don't have cabal-get it will be great to setup such page
On 12/12/06, Ketil Malde [EMAIL PROTECTED] wrote:
I'm possibly using cabal in a simplistic way, but I generally do either
./Setup.lhs configure -p
./Setup.lhs build
./Setup.lhs install
[...]
This is a lot of typing, and at least once I wrote a Makefile to
automate it (oh, the irony
(Wow, it looks like my message has generated quite a bit of traffic!
Thanks, guys!)
On 12/11/06, Taral [EMAIL PROTECTED] wrote:
The magic commands are:
runhaskell Setup.lhs configure
runhaskell Setup.lhs build
runhaskell Setup.lhs install
Excellent! Now I'm getting somewhere. I even found
On 12/12/06, Claus Reinke [EMAIL PROTECTED] wrote:
the difference, as far as it is relevant for getting going, is often just
context, which can be rectified by surprisingly small steps, such as
collecting the assumptions in one obvious-to-find file.
Indeed. I can now confirm that it's *not*
On 12/12/06, Bayley, Alistair [EMAIL PROTECTED] wrote:
($) doesn't handle higher-ranked types, and overusing it can lead to
these kinds of errors.
Thanks - not something I'd have ever found on my own.
Next one:
runhaskell db.hs
can't load .so/.DLL for: sqlite3 (addDLL: unknown error)
This
On 12/12/06, Taral [EMAIL PROTECTED] wrote:
On 12/12/06, Paul Moore [EMAIL PROTECTED] wrote:
Can I somehow force PostgreSQL to be disabled? If I need to rebuild to
do so (grumble) then how do I uninstall the current version of takusen
(it's not in Add/Remove programs and runhaskell Setup.hs
On 12/11/06, Nicola Paolucci [EMAIL PROTECTED] wrote:
I am trying to understand this bit by bit I am sorry if this is either
very basic and easy stuff, or if all I wrote is completely wrong and I
did not understand anything. :D Feedback welcome.
Don't apologise - I, for one, am finding this
I'm an Oracle DBA, and I have been looking at Haskell with interest
for a long while now. But I don't feel particularly that I could use
it in my day job, mainly because I can't seem to find a nice, simple
way of doing (Oracle) database access in Haskell.
What I'm after is very simple - I want
On 12/11/06, Kirsten Chevalier [EMAIL PROTECTED] wrote:
This is when you write that documentation :-) And I say that without
knowing anything about any of the Haskell database libraries -- I just
suspect that if you can't find any good documentation for them, that's
your cue to write it.
On 12/11/06, Kirsten Chevalier [EMAIL PROTECTED] wrote:
Don't apologize; you're not being dumb. But, you have to realize that
if you're using Haskell at all, you *are* the Haskell community.
OK, thanks for the gentle push. After a bit of digging, I decided that
the takusen link looked like a
On 1/30/06, Gracjan Polak [EMAIL PROTECTED] wrote:
Is there any library to make Haskell call Microsoft COM functions using
Dispatch? E.g I don't need the full COM binary functionality, scripting is
enough. Google didn't seem to find anything interesting... beside rolling my
own using FFI :)
On 1/22/06, Dmitry Astapov [EMAIL PROTECTED] wrote:
Recend thread Tutorial upload reminded me of my intentions to write
haskell tutorial which I suppresend from the times when Hal Daume
began to write YAHT. Unusually low temperature here (-22C) freed me a
lot of time this weekend, and the
On 25 Dec 2005 12:24:38 +0100, Peter Simons [EMAIL PROTECTED] wrote:
Paul Moore writes:
It would be interesting to see standalone code for wcIOB
(where you're allowed to assume that any helpers you
need, like your block IO library, are available from the
standard library). This would
On 23 Dec 2005 22:29:02 +0100, Peter Simons [EMAIL PROTECTED] wrote:
Daniel Carrera writes:
when I have a simple algorithm and performance is an
issue [...] I'd use C.
You don't have to. You can write very fast programs in
Haskell.
I never really finished the article I wanted to write
On 12/22/05, John Meacham [EMAIL PROTECTED] wrote:
Just the idea that you can write things like mapM and replicateM is
enough to blow the mind of many impertive programmers.
Not trying to fan the flames, but one thing I struggle with is
understanding (at a gut level - if you explain the theory,
On 12/20/05, Daniel Carrera [EMAIL PROTECTED] wrote:
Hi all,
I've finished a first draft of what I call First steps in Haskell.
It's intended to be the very first thing a new user sees when they
decide to try out Haskell.
http://www.haskell.org/hawiki/FirstSteps?action=show
It's a bit
On 12/20/05, Hal Daume III [EMAIL PROTECTED] wrote:
It seems a bit unfair to say that there are no good ways of learning
information about Haskell. Yes, I'm shamelessly plugging my own tutorial,
but that's because I think it's pretty good.
I agree, it is. I read it and found it a great help
OOn Mon, 19 Dec 2005 10:50:00 +0100, Wolfgang Jeltsch
[EMAIL PROTECTED] wrote:
Am Sonntag, 18. Dezember 2005 17:25 schrieb Daniel Carrera:
[...]
This is a real problem for Haskell. I expect that a lot of people try
Haskell and give up because they can't even write the simplest function.
Bulat Ziganshin [EMAIL PROTECTED] writes:
about your first question - read
http://www.nomaware.com/monads/monad_tutorial.zip
That's a great tutorial. Thanks for the pointer!
Paul.
--
C++ is history repeated as tragedy. Java is history repeated as farce.
-- Scott McKay
I've started learning Haskell, and I'm going through all the tutorial
material I can find - there's a lot of good stuff available.
One thing I haven't found a really good discussion of, is practical
examples of building monads. There's plenty of discussion of the IO
monad, and the state monad,
David Roundy [EMAIL PROTECTED] writes:
A very nice simple starting monad from the Prelude to consider when
thinking about these things is Maybe.
[...]
It took me a long time before I realized I could do this,
Wow, that's a really nice example.
For more complicated practical examples (and
90 matches
Mail list logo