On 26 Nov 2007, at 10:48 AM, Henning Thielemann wrote:
I wonder whether it is a typical mistake of beginners
to write 'return' within a do-block (that is, not at the end)
and if it is possible to avoid this mistake by clever typing.
In a proper monad 'return' can be fused with subsequent action
On Nov 26, 2007 11:38 AM, Thomas Schilling <[EMAIL PROTECTED]> wrote:
>
> Haskell is a general-purpose, pure functional programming languages
> that puts many interesting results from research into a practical
> programming language. It's features include:
>
I think it is stronger to say "many
s.clover:
> In some spare time over the holidays I cooked up three shootout
> entries, for Fasta, the Meteor Contest, and Reverse Complement. I
Yay!
> First up is the meteor-contest entry.
>
> http://shootout.alioth.debian.org/gp4/benchmark.php?
> test=meteor&lang=ghc&id=5
>
> This is the
In some spare time over the holidays I cooked up three shootout
entries, for Fasta, the Meteor Contest, and Reverse Complement. I
should probably have tossed them to haskell-cafe before submission,
for review and ideas, but they're up now. In any case, all three were
great learning experien
Ian Lynagh wrote:
>
>
> Can any of you give us a testcase for this, please?
>
>
> Thanks
> Ian
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
I started to work on this b
Among numeric types, it seems that only integer types are Bounded.
--
_jsn
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
allbery:
>
> On Nov 26, 2007, at 19:23 , Maurí cio wrote:
>
> >Are 'String's in GHC 6.6.1 UTF-8?
>
> No.
>
> type String = [Char]
>
> and Char stores Unicode codepoints. However, the IO system truncates
> them to 8 bits. I think there are UTF8 marshaling libraries on
> hackage these days
Hi Henning,
> I wonder whether it is a typical mistake of beginners
> to write 'return' within a do-block (that is, not at the end)
> and if it is possible to avoid this mistake by clever typing.
There are legitimate uses of return inside a do, see:
http://www.cs.york.ac.uk/fp/darcs/catch/catch_1
On Nov 26, 2007, at 19:23 , Maurí cio wrote:
Are 'String's in GHC 6.6.1 UTF-8?
No.
type String = [Char]
and Char stores Unicode codepoints. However, the IO system truncates
them to 8 bits. I think there are UTF8 marshaling libraries on
hackage these days, though.
--
brandon s. allbe
On Tue, 2007-11-27 at 00:15 +0100, Chris Eidhof wrote:
> On 26 nov 2007, at 19:48, Henning Thielemann wrote:
> > I wonder whether it is a typical mistake of beginners
> > to write 'return' within a do-block (that is, not at the end)
> > and if it is possible to avoid this mistake by clever typing.
Hi,
Are 'String's in GHC 6.6.1 UTF-8?
Thanks,
Maurício
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
I am trying to use the HTTP library 3001 for ghc 6.8 and cant figure out how
to use a proxy to do a GET request as I am behind a proxy server. My thinking
is that I could use the setProxy method it looks like it returns a
BrowserAction? What do I do with that. Here is the current code (I havent
While writing some multi-core concurrent code I needed more precise
control over which thread evaluated particular expressions. The default
concurrent types, MVar and Chan, are lazy, and sometimes not suitable.
The little package,
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/st
On 26 nov 2007, at 19:48, Henning Thielemann wrote:
I wonder whether it is a typical mistake of beginners
to write 'return' within a do-block (that is, not at the end)
and if it is possible to avoid this mistake by clever typing.
In a proper monad 'return' can be fused with subsequent actions,
an
I've followed the instructions at [1] to create a .deb of vty[2]. It
seems the helper scripts for Debian passes `--enable-split-obj' when
running `./Setup.lhs configure'. This results in numerous multiple
definitions of stuff. I have a few questions regarding this...
I think I understand what -
See also: http://haskell.org/haskellwiki/Upgrading_packages
You probably have to adjust the build-depends field, due to the base
split up.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Mon, 2007-11-26 at 21:24 +0100, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm trying to build MissingH (0.18.6) on Windows, but it looks like
> (probably because of changes in Cabal) the Setup.hs is broken. Im using GHC
> 6.8.1. Following message:
>
> $ runhaskell Setup.hs configure
>
> Setup.hs:19:
Hi,
I'm trying to build MissingH (0.18.6) on Windows, but it looks like
(probably because of changes in Cabal) the Setup.hs is broken. Im using GHC
6.8.1. Following message:
$ runhaskell Setup.hs configure
Setup.hs:19:35:
Couldn't match expected type `(Either
>> Actually, I did mean to start with:
>> (...)
>>
>> #0#
>> #0#
>> ###
>> ###
>> ###
>> ###
>> ###
>>
>> (...)
> Heh. He's in for a surprise, there are actually
> solutions for this. (...)
If you don't want to spoil it here, and it won't
take too much of your time to write i
Thomas Davie wrote:
But the point is that this section of the site is the bit that's meant
to be an advertisement -- we're trying to encourage people to read
more, and quite frankly, making it a fist full of links would make at
least me think "Well bugger this if I have to read 10 pages before
Hello Henning,
Monday, November 26, 2007, 9:48:29 PM, you wrote:
> I wonder whether it is a typical mistake of beginners
> to write 'return' within a do-block (that is, not at the end)
don't forget that `return` is also used to force evaluation:
do let n = a+b
return $! n
writeChan c (n,1
On Thu, 2007-10-04 at 10:36 -0700, Don Stewart wrote:
> It was raised at CUFP today that while Python has:
>
> Python is a dynamic object-oriented programming language that can be
> used for many kinds of software development. It offers strong
> support for integration with other langu
Fair enough, I can wait for a couple of days.
You might want to fix
[EMAIL
PROTECTED]:~/haskell-installs/yhc-install/yhc/src/translator/js/test>darcs
whatsnew
{
hunk ./src/translator/js/test/Makefile 12
- $(YHC) -includes ../lib/haskell -linkcore $<
+ $(YHC) --includes ../lib/haskell
Hello Folks,
Adrian Hey wrote:
If anyone is interested in the job then I
suggest they contact myself or Jean-Philippe Bernardy.
Sigh..no sooner than I go and write something like that than the IEE (or
I should say IET) go and break my mail alias. So sorry if anyone did
actually try to contact
I wonder whether it is a typical mistake of beginners
to write 'return' within a do-block (that is, not at the end)
and if it is possible to avoid this mistake by clever typing.
In a proper monad 'return' can be fused with subsequent actions,
and thus it is not necessary within a sequence of actio
As I mentioned in a previous post, I've been spending quite some time
trying to get live with ycr2js because there's a project it would be
useful for for my day job, as well as making another nice demo to add
to the list.
Basically, I have some functionality that does client-side filtering
of larg
On 26 Nov 2007, at 15:50, Henning Thielemann wrote:
On Mon, 26 Nov 2007, Thomas Davie wrote:
On 26 Nov 2007, at 15:15, Henning Thielemann wrote:
On Thu, 4 Oct 2007, Don Stewart wrote:
The Haskell website has the rather strange motivational text:
Haskell is a general purpose, purely f
On Mon, 26 Nov 2007, Andrew Coppin wrote:
> apfelmus wrote:
> > But we'd probably need the glossary articles first before linking to
> > them :)
>
> +12
>
> I added added alpha, beta and eta conversion a while back. (And then
> some kind soul corrected it because half of what I wrote was actually
apfelmus wrote:
But we'd probably need the glossary articles first before linking to
them :)
+12
I added added alpha, beta and eta conversion a while back. (And then
some kind soul corrected it because half of what I wrote was actually
*wrong*...) Anybody want to take a stab at all 15 kinds
2007/11/26, Dimitry Golubovsky <[EMAIL PROTECTED]>:
> Thomas,
>
> All published examples (source, html) go into web/jsdemos subdirectory
> (from the root of the Yhc repo source tree).
right; it would be nice to have a makefile (or makefiles) there that
works out of the box, rather than relying on
Henning Thielemann wrote:
Now my idea was, that making
links to glossary articles leaves the slogan as short as it is, and allows
people to find out quickly about the words they still don't know. An
explanation why Haskell's features are useful for programmers is still
required.
+1
But we'd pr
Based on my experience, I wouldn't recommend doing scons fullclean;
rather, I would darcs checkout and go from scratch. Annoying, but
seems to work better.
thomas.
2007/11/26, Dimitry Golubovsky <[EMAIL PROTECTED]>:
> Thomas,
>
> This happens sometimes as Yhc depends on many other packages not
False alarm.
I rm -rf ed yhhc, fresh darcs got the latest yhc, reinstalled yhc, and redid
(cd src/translator/js; make all install)
and it built.
2007/11/26, Dimitry Golubovsky <[EMAIL PROTECTED]>:
> Thomas,
>
> It looks like this comes from Yhc, not from the Javascript backend.
>
> Have you do
still having problems darcs pulling your updates, related to System.FilePath.
did you make clean and then make again?
I darcs pulled everything.
(cd src/translator/js; make all install)
... ...
(cd
/home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell;
\
for f
Maur??cio wrote:
> Actually, I did mean to start with:
>
> ###
> ###
> ###0###
> ###
> ###
> ###
> ###
>
> and then go to:
>
> #0#
> #0#
> ###
> ###
> ###
> ###
> ###
>
> My brother's idea is that he can solve any board
> after you choose the initial peg to be re
It would be really helpful if you could include this (and other)
examples in an /examples directory under
src/translator/js
in the yhc darcs distribution, with working makefiles that validate
against the buildbot.
Something seems a bit off for me, probably forgot a tilde somewheres.
t.
2007/11
Call for Copy
The Monad.Reader - Issue 10
I would like to welcome articles for the anniversary issue of The
Monad.Reader.
* The Monad.Reader *
The Monad.Reader is an electronic magazine about all things Haskell.
It is less-formal tha
On Mon, 26 Nov 2007, Thomas Davie wrote:
> On 26 Nov 2007, at 15:15, Henning Thielemann wrote:
>
> >
> > On Thu, 4 Oct 2007, Don Stewart wrote:
> >
> >> The Haskell website has the rather strange motivational text:
> >>
> >>Haskell is a general purpose, purely functional programming
> >> lang
On 26 Nov 2007, at 15:15, Henning Thielemann wrote:
On Thu, 4 Oct 2007, Don Stewart wrote:
The Haskell website has the rather strange motivational text:
Haskell is a general purpose, purely functional programming
language
featuring static typing, higher order functions, polymorphism,
On Thu, 4 Oct 2007, Don Stewart wrote:
> The Haskell website has the rather strange motivational text:
>
> Haskell is a general purpose, purely functional programming language
> featuring static typing, higher order functions, polymorphism, type
> classes, and monadic effects. Haskell
On Mon, 26 Nov 2007, apfelmus wrote:
> Benedikt Huber wrote:
> > > type Upd a = a -> a
> > > data Ref cx t
> > > = Ref { select :: cx -> t , update :: Upd t -> Upd cx }
>
> Functional references are also called "lens", I'm going to use that term
> from now on.
>
> As a minor note, I somehow pr
Benedikt Huber wrote:
> type Upd a = a -> a
> data Ref cx t
> = Ref { select :: cx -> t , update :: Upd t -> Upd cx }
Functional references are also called "lens", I'm going to use that term
from now on.
As a minor note, I somehow prefer a single primitive
data Lens s a = Lens { focus
>> (...)However, I'm doing that because there's a
>> single position which my brother could not
>> solve, and he believes it to be impossible(...)
>>
>
> I guess you meant
> #0#
> #0#
> ###0###
> ###
> ###
> ###
> ###
>
> This indeed can not be solved. (...)
Actually, I did mean t
On 18 Aug 2007, at 20:10, Henk-Jan van Tuyl wrote:
Now that all hawiki pages have been removed, we have lost some
valuable information. For example The Monad.Reader; on http://
www.haskell.org/haskellwiki/The_Monad.Reader
A few people have been asking what has happened to old editions of
Neil Mitchell wrote:
> Hi
>
> Some of these can be automatically derived by the Data.Derive tool...
> The derivations Set, Is, From, Has, LazySet all look useful.
> ...
>
> On Nov 24, 2007 4:01 PM, Thomas Hartman <[EMAIL PROTECTED]> wrote:
>> I think I'm running into more or less the same issue di
Hello Haskell-Cafe,
i've written small program which demonstrates how map/reduce may be
implemented in Haskell. it counts amount of words in file, splitting
it into 64kb blocks processed by two threads. their results are
combined by another two threads. how it may be made better? in
particular, is
46 matches
Mail list logo