RE: [Haskell-cafe] Re: Is there already an abstraction for this?

2008-10-20 Thread Mitchell, Neil
[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Larry Evans > Sent: 18 October 2008 10:48 pm > To: haskell-cafe@haskell.org > Subject: [Haskell-cafe] Re: Is there already an abstraction for this? > > On 09/23/08 01:01, Jake Mcarthur wrote: > > -BEGIN PGP SIGNE

[Haskell-cafe] Re: Is there already an abstraction for this?

2008-10-18 Thread Larry Evans
On 09/23/08 01:01, Jake Mcarthur wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The first thing I thought of was to try to apply one of the recursion > schemes > in the category-extras package. Here is what I managed using catamorphism. > > - - Jake > > - > ---

[Haskell-cafe] Re: Is there already an abstraction for this?

2008-09-23 Thread Christian Maeder
Jeremy Shaw wrote: > I have an expression data-type: > >> data Expr >>= Quotient Expr Expr >>| Product Expr Expr >>| Sum Expr Expr >>| Difference Expr Expr >>| Lit Double >>| Var Char >> deriving (Eq, Ord, Data, Typeable, Read, Show) I prefer such expressions written