Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Brian Hulley
Paul Johnson wrote: "Brian Hulley" <[EMAIL PROTECTED]> wrote: What about a library for interval arithmetic [1]? [Interval 5 5] / [Interval -1 1] = [FromNegInfinityTo -5, ToPosInfinityFrom 5] Take a look at my Ranged Sets library at http://sourceforge.net/projects/ranged-sets Hi P

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Paul Johnson
"Brian Hulley" <[EMAIL PROTECTED]> wrote: What about a library for interval arithmetic [1]? I'd imagine it could start something like: data Interval a = Interval !a !a deriving (Eq, Show) instance Num a => Num (Interval a) where Interval llow lhigh + Interval rlow rhigh = Inte

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Jan-Willem Maessen
On Sep 3, 2006, at 8:22 AM, Brian Hulley wrote: Tamas K Papp wrote: On Sun, Sep 03, 2006 at 12:47:45PM +0400, Bulat Ziganshin wrote: i also suggest you to start write some library. there is enough useful libs that are still bnot implemented because lack of time (and insterest in such simpl

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Brian Hulley
Brian Hulley wrote: Interval llow lhigh + Interval rlow rhigh = Interval (min llow rlow) (max lhigh rhigh) Not a good start!!! ;-) Interval llow lhigh + Interval rlow rhigh = Interval (llow+rlow) (lhigh+rhigh) ___ Haskell-Cafe mailing list Hask

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Brian Hulley
Tamas K Papp wrote: On Sun, Sep 03, 2006 at 12:47:45PM +0400, Bulat Ziganshin wrote: i also suggest you to start write some library. there is enough useful libs that are still bnot implemented because lack of time (and insterest in such simple code) on side of more experienced programmers. i onc

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Tamas K Papp
On Sun, Sep 03, 2006 at 12:47:45PM +0400, Bulat Ziganshin wrote: > Hello Tamas, > > Sunday, September 3, 2006, 12:15:48 PM, you wrote: > > > I am looking for small to medium sized practice problems, preferably > > with solutions. Hal Daume's tutorial had some good one-liners (eg > > rewrite some

Re: [Haskell-cafe] practice problems?

2006-09-03 Thread Bulat Ziganshin
Hello Tamas, Sunday, September 3, 2006, 12:15:48 PM, you wrote: > I am looking for small to medium sized practice problems, preferably > with solutions. Hal Daume's tutorial had some good one-liners (eg > rewrite something point-free) but I am looking for something which > would take 1-3 hours f

[Haskell-cafe] practice problems?

2006-09-03 Thread Tamas K Papp
Hi, I am a Haskell newbie. Having read some tutorials (Yet Another, Gentle Introduction) and some papers/tutorials on monads, I would like to spend some time practicing what I have learned before embarking on more abstract/obscure things and/or using Haskell for everyday tasks. I am looking for