On Wed, 2007-09-05 at 13:02 +1000, Donald Bruce Stewart wrote:
> The xmonad dev team is pleased to announce the 0.3 release of xmonad.
I just wanted to congratulate the team, and say that xmonad is, along
with darcs, my favorite "mainstream" Haskell program. I used to spend
days experimenting w
=
Final Call for Participation
The 12th ACM SIGPLAN International Conference
on Functional Programming (ICFP 2007)
http://www.informatik.uni-bonn.de/~ralf/icfp07.html
Hi there. I'm a teacher of Maths and am working my way through the Euler
Project problems for fun. I have mostly been using Basic, but have read
up about Haskell and think it looks like a sensible way to solve many of
the problems.
OK, so I've downloaded GHCi and am trying to teach myself.
So far
On Sep 5, 2007, at 21:10 , Tomi Owens wrote:
Prelude> let f (a,b) = a * floor (10/b)
Prelude> f(2,5)
4
This function works just as I want it to.
Now I try creating a list:
Prelude> [(a2+b2,a)| a <- [1..4] , b<- [1..4], a2+b2<20, b<=a]
[(2,1),(5,2),(8,2),(10,3),(13,3),(18,3),(17,4)]
2007/9/5, Tomi Owens <[EMAIL PROTECTED]>:
> So now I try to apply the function to the list:
>
> Prelude> map (f) [(a2+b2,a)| a <- [1..4] , b<- [1..4], a2+b2<20, b<=a]
>
> and I get this result:
>
> :1:5:
> Ambiguous type variable `t' in the constraints:
> `Integral t' arising from use
On 9/5/07, Tomi Owens <[EMAIL PROTECTED]> wrote:
>
> Hi there. I'm a teacher of Maths and am working my way through the Euler
> Project problems for fun. I have mostly been using Basic, but have read up
> about Haskell and think it looks like a sensible way to solve many of the
> problems.
>
>
I se
"Tomi Owens" <[EMAIL PROTECTED]> writes:
> Hi there. I'm a teacher of Maths and am working my way through the
> Euler Project problems for fun. I have mostly been using Basic, but
> have read up about Haskell and think it looks like a sensible way to
> solve many of the problems.
It certainly is.