Re: [Haskell-cafe] Idiomatic usage of the fixpoint library

2011-09-05 Thread Roman Leshchinskiy
Roman Cheplyaka wrote: > > {-# LANGUAGE TypeFamilies, FlexibleContexts, UndecidableInstances, > FlexibleInstances #-} > import Data.Fixpoint > > newtype Expr = Expr { unExpr :: Pre Expr Expr } > > instance Functor (Pre Expr) => Fixpoint Expr where > data Pre Expr a >

Re: [Haskell-cafe] Idiomatic usage of the fixpoint library

2011-09-05 Thread Sean Leather
On Sun, Sep 4, 2011 at 13:03, Roman Cheplyaka wrote: > * Sean Leather [2011-09-04 12:48:38+0200] > > On Sun, Sep 4, 2011 at 12:31, Roman Cheplyaka wrote: > > > > > I'm looking for an example of idiomatic usage of the fixpoint > library[1]. > > > > > > [1]: http://hackage.haskell.org/package/fixpoi

Re: [Haskell-cafe] Idiomatic usage of the fixpoint library

2011-09-04 Thread Roman Cheplyaka
* Sean Leather [2011-09-04 12:48:38+0200] > On Sun, Sep 4, 2011 at 12:31, Roman Cheplyaka wrote: > > > I'm looking for an example of idiomatic usage of the fixpoint library[1]. > > > > [1]: http://hackage.haskell.org/package/fixpoint-0.1.1 > > > I'm not sure if this counts for idiomatic usage,

Re: [Haskell-cafe] Idiomatic usage of the fixpoint library

2011-09-04 Thread Sean Leather
On Sun, Sep 4, 2011 at 12:31, Roman Cheplyaka wrote: > I'm looking for an example of idiomatic usage of the fixpoint library[1]. > > [1]: http://hackage.haskell.org/package/fixpoint-0.1.1 I'm not sure if this counts for idiomatic usage, but you can check out our approach to incrementalization.

[Haskell-cafe] Idiomatic usage of the fixpoint library

2011-09-04 Thread Roman Cheplyaka
Hi, I'm looking for an example of idiomatic usage of the fixpoint library[1]. [1]: http://hackage.haskell.org/package/fixpoint-0.1.1 Here's what I managed to get: {-# LANGUAGE TypeFamilies, FlexibleContexts, UndecidableInstances, FlexibleInstances #-} import Data.Fixpoint newtype