On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED] wrote:
Unfortunately, I don't have Paulson's book (or any other ML book :) at
home. I'm too lazy to figure out the specification from the source code,
I guess the code is too opaque, as my colleague claimed.
The layout the algorithm
| Will it eventually replace Data.List in GHC?
|
| That is the plan, yep.
But first we need to solve the concatMap problem, no?
So far as I know, fold/build has the property that if fusion doesn't happen, no
harm is done. But streams risk making the program *worse* if Good Things do not
I am pleased to announce that a new issue of The Monad.Reader is now
available:
http://www.haskell.org/haskellwiki/The_Monad.Reader
Issue 9 is a Summer of Code Special - it consists of three articles
from student participants of Google's Summer of Code, describing the
projects they
On 19/11/2007, Wouter Swierstra [EMAIL PROTECTED] wrote:
I am pleased to announce that a new issue of The Monad.Reader is now
available:
http://www.haskell.org/haskellwiki/The_Monad.Reader
Thanks Wouter, the haiku look great! ;-)
--
Dougal Stanton
[EMAIL PROTECTED] //
On Sun, 18 Nov 2007, Andrew Coppin wrote:
Lauri Alanko wrote:
Please note that if you're using GHC, bang patterns are often much
more convenient than $! or seq when you want to enforce strictness:
http://www.haskell.org/ghc/docs/latest/html/users_guide/bang-patterns.html
Wait, so...
Wouter Swierstra wrote:
I am pleased to announce that a new issue of The Monad.Reader is now
available:
http://www.haskell.org/haskellwiki/The_Monad.Reader
Dougal Stanton wrote:
Thanks Wouter, the haiku look great! ;-)
I agree, they are fantastic! (And they are not short.)
Perhaps you
John D. Ramsdell wrote:
On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Unfortunately, I don't have Paulson's book (or any other ML book :) at
home. I'm too lazy to figure out the specification from the source code,
I guess the code is too opaque,
On Sat, Nov 17, 2007 at 06:31:08PM -0800, Don Stewart wrote:
Just a quick announce: the stream fusion library for lists,
that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year
is now available on Hackage as a standalone package:
Just to note: I'm excited about one day using
John D. Ramsdell wrote:
On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED] wrote:
Unfortunately, I don't have Paulson's book (or any other ML book :) at
home. I'm too lazy to figure out the specification from the source code,
I guess the code is too opaque, as my colleague claimed.
The
This minimal program below fails in 6.8.1, works for 6.6.1, for up to date
HDBC-ODBC-1.1.3. (I tried installing both from package and from darcs
head)
Installed and running from cygwin.
When I run it as runghc fail.hs I get a windows popup error ghc.exe has
encountered a problem and needs to
The data dependency is circular. The case e of Str and Brk are not-circular:
layout examines the input parameters to determine column'. Then column'
is used to compute columnOut and s'. Then the current data is
prepended to s'. The Blo case is the circular one. Pushing the circular
i would categorize myself as a purely practical programmer. i enjoy
using haskell for various practical tasks and it has served me
reliably. one issue i have with the library support for practical
problem domains is the half-finished state of many fundamental
codebases such as networking and
I can find the paper, but is the source code for that Space Invaders
alike game also available somewhere?
Thanks,
Peter
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Nov 19, 2007 10:25 AM, brad clawsie [EMAIL PROTECTED] wrote:
so far the haskell community has taken the cpan route for most
practical libs but i wonder if a batteries included approach might
help get some key libraries to a more complete state. in particular, i
would like to see support for
On 19.11.2007, at 19:54, Peter Verswyvelen wrote:
I can find the paper, but is the source code for that Space
Invaders alike game also available somewhere?
it's included here: http://haskell.org/yampa/afrp-0.4-src.tgz
btw, does anybody know what's the current state of affairs with yampa/
sk:
On 19.11.2007, at 19:54, Peter Verswyvelen wrote:
I can find the paper, but is the source code for that Space
Invaders alike game also available somewhere?
it's included here: http://haskell.org/yampa/afrp-0.4-src.tgz
btw, does anybody know what's the current state of affairs with
Batteries included, I could take it or leave it.
Where I think hackage could really benefit from copying perl strategy is
automated testing of *all* packages under hackage darcs, not just blessed
packages.
If this could be integrated into the buildbot of whatever ghc is under
development
Most research papers have the same layout: two columns per A4 page. They
mostly come as PDF or PS.
Although this is standard, it is not really accessible for people with
people with bad vision, who prefer larger fonts. When you print this,
the fonts are rather small. For those people, a
Hi Peter,
Although this is standard, it is not really accessible for people with
people with bad vision, who prefer larger fonts. When you print this, the
fonts are rather small. For those people, a reflowable PDF would make much
more sense, so they can choose how big the fonts are on screen
simonpj:
| Will it eventually replace Data.List in GHC?
|
| That is the plan, yep.
But first we need to solve the concatMap problem, no?
So far as I know, fold/build has the property that if fusion doesn't happen,
no harm is done. But streams risk making the program *worse* if Good
Justin Bailey wrote:
On Nov 19, 2007 10:25 AM, brad clawsie [EMAIL PROTECTED] wrote:
so far the haskell community has taken the cpan route for most
practical libs but i wonder if a batteries included approach might
help get some key libraries to a more complete state. in particular, i
would
Hi
- The packages seem to be of quite variable quality. Some are excellent,
some are rather poor (or just not maintained any more).
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.
- Almost all packages seem
andrewcoppin:
Hackage seems like a nice idea in principle. However,
I think in practice too: we had no central lib archive or dependency
system, now we have 400 libraries, and a package installer, 10 months
later. Until Hackage, there was a strong pressure not to reuse other
people's
ndmitchell:
Hi
- The packages seem to be of quite variable quality. Some are excellent,
some are rather poor (or just not maintained any more).
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.
-
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.
i would just like to add that i have had a great deal of success with
hackage and find that most libraries support what they say they will
support, but often
On Mon, 2007-11-19 at 12:17 -0800, Don Stewart wrote:
andrewcoppin:
Hackage seems like a nice idea in principle. However,
I think in practice too: we had no central lib archive or dependency
system, now we have 400 libraries, and a package installer, 10 months
later. Until Hackage,
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
I've got a first draft with the newtype and just an instance for list.
If you'd prefer fewer questions, please let me know ;)
0) I've cabalised it (lazy-binary), but I don't have anywhere to host it.
Would it be appropriate to host on darcs.haskell.org or HackageDB (yet?).
Suggestions?
1)
Don Stewart wrote:
Just a quick announce: the stream fusion library for lists,
that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year
is now available on Hackage as a standalone package:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/stream-fusion-0.1.1
As
LS,
here is a puzzle for you: try converting a
System.Posix.Types.EpochTime into either a
System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going
through
read . show or a similar detour through strings.
The problem comes up when trying to easily nicely display the access,
On Mon, 2007-11-19 at 21:47 +0100, Radosław Grzanka wrote:
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
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
At Mon, 19 Nov 2007 10:25:40 -0800,
brad clawsie wrote:
so far the haskell community has taken the cpan route for most
practical libs but i wonder if a batteries included approach might
help get some key libraries to a more complete state. in particular, i
would like to see support for basic
On Mon, 19 Nov 2007, brad clawsie wrote:
i would categorize myself as a purely practical programmer. i enjoy
using haskell for various practical tasks and it has served me
reliably. one issue i have with the library support for practical
problem domains is the half-finished state of many
whereas today the decision is often directed by
what is standard?. With this solution we wouldn't have had the FiniteMap
break, we could choose more equally between different data structure
collections (say Edison vs. GHC libs), monad libraries, and so on.
this is a good point...blessing one
brad clawsie wrote:
in any case, batteries included or not, ghc seems to have reached a
point of stability, high performance, and lots of neat fundamental
features that it can be left alone for a short time. i would love to
see 2008 be the year we direct time and effort to solve filling holes
nicolas.frisby:
I've got a first draft with the newtype and just an instance for list.
If you'd prefer fewer questions, please let me know ;)
0) I've cabalised it (lazy-binary), but I don't have anywhere to host
it. Would it be appropriate to host on [1]darcs.haskell.org or
On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote:
here is a puzzle for you: try converting a
System.Posix.Types.EpochTime into either a
System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going
through
read . show or a similar detour through strings.
fromEnum and/or toEnum
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??
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote:
On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote:
here is a puzzle for you: try converting a
System.Posix.Types.EpochTime into either a
System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going
through
read . show or
Arthur van Leeuwen wrote:
A closely related issue: fromIntegral is in Integral which also
requires quotRem. However,
the two are semantically quite disjoint. I can *easily* see the
semantics of fromIntegral
on EpochTime, but not the semantics of quotRem on EpochTime.
Having
On Nov 19, 2007, at 15:13 , Neil Mitchell wrote:
- The packages seem to be of quite variable quality. Some are
excellent,
some are rather poor (or just not maintained any more).
The problem is that only one person gets to comment on the quality of
a library, the author, who is about the
On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote:
If you look at the stability tag of ghc libraries you will see that a
lot of them are marked as provisional (Network.URI for example) or
experimental (Control.Monad.Trans).
This may not refer to what most people care about; the experimental
If you were going to implement Tetris in Haskell, how would you do it?
(For that matter, has anybody already *done* it? It would probably make
a nice example program...)
I'm particularly interested to know
1. How exactly would you do the graphical components? (Presumably
there's some deep
Why don't you typeset the whole thing in Latex. That way you'll
definitely ensure accessibility.
Cheers
Paul
At 19:43 19/11/2007, you wrote:
Most research papers have the same layout: two columns per A4 page.
They mostly come as PDF or PS.
Although this is standard, it is not really
Brandon S. Allbery KF8NH wrote:
On Nov 19, 2007, at 15:13 , Neil Mitchell wrote:
- The packages seem to be of quite variable quality. Some are
excellent,
some are rather poor (or just not maintained any more).
The problem is that only one person gets to comment on the quality of
a
On Mon, 19 Nov 2007, Andrew Coppin wrote:
Arthur van Leeuwen wrote:
A closely related issue: fromIntegral is in Integral which also
requires quotRem. However,
the two are semantically quite disjoint. I can *easily* see the
semantics of fromIntegral
on EpochTime, but not the
On Nov 19, 2007, at 16:50 , Henning Thielemann wrote:
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote:
fromEnum and/or toEnum are helpful for this kind of thing, and I am
occasionally tempted to bind cast = toEnum . fromEnum because I
need it so much.
Really? I'd like to know which
On Nov 19, 2007, at 17:10 , Brandon S. Allbery KF8NH wrote:
CTime; POSIX allows (or used to allow) it to be a floating type in
order to allow some non-UNIXlikes to represent POSIX times. But
given that CTime is Enum, Foreign.C.Types already violates this; so
why isn't it
Hrm, not
andrewcoppin:
If you were going to implement Tetris in Haskell, how would you do it?
(For that matter, has anybody already *done* it? It would probably make
a nice example program...)
http://haskell.org/haskellwiki/Applications_and_libraries/Games
ASCII tetris
On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote:
nicolas.frisby:
I've got a first draft with the newtype and just an instance for list.
If you'd prefer fewer questions, please let me know ;)
0) I've cabalised it (lazy-binary), but I don't have anywhere to host
it.
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote:
On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote:
If you look at the stability tag of ghc libraries you will see that a
lot of them are marked as provisional (Network.URI for example) or
experimental (Control.Monad.Trans).
This may
Neil Mitchell wrote:
Hi
- The packages seem to be of quite variable quality. Some are excellent,
some are rather poor (or just not maintained any more).
The problem is that only one person gets to comment on the quality of
a library, the author, who is about the least objective
On Nov 19, 2007, at 17:01 , Mads Lindstrøm wrote:
Brandon S. Allbery KF8NH wrote:
The ability to vote on packages might be interesting here. If
there's 4 HTML libraries and one of them gets lots of votes, it's
probably the one to look at first.
It occurred to me that the voting could be
Don Stewart wrote:
andrewcoppin:
Hackage seems like a nice idea in principle. However,
I think in practice too: we had no central lib archive or dependency
system, now we have 400 libraries, and a package installer, 10 months
later.
Hackage is that new??
- The packages seem to
On Mon, 19 Nov 2007, Mads [ISO-8859-1] Lindstrøm wrote:
It occurred to me that the voting could be implicit. That is, if 10
libraries/programs use library X, then library X gets 10 votes. Kind of
like Google PageRank for libraries.
It would be good if users could comment verbally. They could
On Nov 19, 2007 9:25 PM, Andrew Coppin [EMAIL PROTECTED] wrote:
If you were going to implement Tetris in Haskell, how would you do it?
(For that matter, has anybody already *done* it? It would probably make
a nice example program...)
I'm particularly interested to know
1. How exactly would
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.
Henning Thielemann [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/19/2007 05:21 PM
To
Haskell
To help learn some Haskell, I implemented a pole-balancing video game in
Haskell, starting with the code for the S.A.R.A.H. road simulator by
Maurício C. Antunes (thanks Maurício) that is included in the Gtk2Hs library
demos. It demonstrates how to do the graphics, interact with the user via
On Nov 19, 2007, at 23:13 , Henning Thielemann wrote:
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote:
On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote:
If you look at the stability tag of ghc libraries you will see
that a
lot of them are marked as provisional (Network.URI for
On Mon, Nov 19, 2007 at 05:27:30PM -0500, Thomas Hartman 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.
yup, for php it gives users a
Hi all,
I'm getting a strange user error when working with Data.ByteString.Char8 and
Text.Regex.PCRE.
Error I get is:
CustomerMaster: user error (Text.Regex.PCRE.ByteString died: (ReturnCode
0,Ptr
parameter was nullPtr in Text.Regex.PCRE.Wrap.wrapMatch cstr))
The part of the code causing
On 2007-11-19, Andrew Coppin [EMAIL PROTECTED] wrote:
Arthur van Leeuwen wrote:
A closely related issue: fromIntegral is in Integral which also
requires quotRem. However,
the two are semantically quite disjoint. I can *easily* see the
semantics of fromIntegral
on EpochTime, but not
On Mon, 2007-11-19 at 20:29 +, Andrew Coppin wrote:
Don Stewart wrote:
Just a quick announce: the stream fusion library for lists,
that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year
is now available on Hackage as a standalone package:
On Mon, 2007-11-19 at 21:22 +, Andrew Coppin wrote:
Where is the correct place for Cabal bugs?
This and other questions are explained at .. *drumroll* .. the Cabal
Homepage!! -- http://www.haskell.org/cabal/
:)
___
Haskell-Cafe mailing list
On 16.11.2007, at 13:55, Jim Burton wrote:
The docs say Should be of the form http://host:port, host,
host:port, or
http://host; but none of the variations work. Any ideas where I
might find
an example of code that does this?
this works for me (modulo error handling):
simpleHTTP' ::
Hello,
I'd like to start a project using Gtk2Hs and one thing is concerning
me: what's the current approach on writing portable and translatable
GUI programs in Haskell?
I couldn't find anything on some quick searchs on haskell.org, hackage
and google. If there aren't any libraries available,
liftM2 (/) sum length. Anyway, the closest you can get in Haskell is
something like this, using the infix expressions of Ken Shan and Dylan
Thurstonhttp://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html
Hmm.. that might be decent if you added rules to pretty-print them in
In light of this discussion, I think the fully spine-strict list instance
does more good than bad argument is starting to sound like a premature
optimization. Consequently, using a newtype to treat the necessarily lazy
instances as special cases is an inappropriate bandaid.
My current opinion: If
At Mon, 19 Nov 2007 23:18:58 -0200,
Felipe Lessa wrote:
If there aren't any libraries available, are there any
suggestions on how to create one?
I am not sure if a better way exists already, but here is how I would
do it if nothing better exists.
Creating a binding to the gettext library
On Mon, Nov 19, 2007 at 05:39:44PM -0800, Jeremy Shaw wrote:
You might also allow:
i18n (multine ++
string)
provided that all the arguments of ++ are string literals. This is
because, AFAIK, there is no other way to split a long string across
multiple source lines in a portable
On Nov 19, 2007 4:16 PM, Duncan Coutts [EMAIL PROTECTED] wrote:
On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote:
nicolas.frisby:
*snip*
1) The fact that serialisation is fully strict for 32760 bytes but not
for
32761 makes the direct application of strictCheck
Hi,
I have been using plain non-monadic CPS for a while in my web-browser
related stuff. Now I am tempted to switch from plain CPS to
syntactically sweetened monadic style based on Continuation Monad, but
I feel stuck with one important issue that I need an advice on.
In plain CPS, I may write:
On Tue, 2007-11-20 at 00:18 -0500, Dimitry Golubovsky wrote:
Hi,
I have been using plain non-monadic CPS for a while in my web-browser
related stuff. Now I am tempted to switch from plain CPS to
syntactically sweetened monadic style based on Continuation Monad, but
I feel stuck with one
Neil Mitchell wrote:
- The packages seem to be of quite variable quality. Some are excellent,
some are rather poor (or just not maintained any more).
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.
Not
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
76 matches
Mail list logo