Re: [Haskell-cafe] know a workaround for greedy context reduction?

2009-01-19 Thread Nicolas Frisby
December 2008 03:23 | To: haskell Cafe | Subject: [Haskell-cafe] know a workaround for greedy context reduction? | | With these three declarations | | {-# LANGUAGE FlexibleInstances #-} | {-# LANGUAGE UndecidableInstances #-} | | class C a where c :: a | class C a = D a where d

RE: [Haskell-cafe] know a workaround for greedy context reduction?

2008-12-07 Thread Simon Peyton-Jones
December 2008 03:23 | To: haskell Cafe | Subject: [Haskell-cafe] know a workaround for greedy context reduction? | | With these three declarations | | {-# LANGUAGE FlexibleInstances #-} | {-# LANGUAGE UndecidableInstances #-} | | class C a where c :: a | class C a = D a where d :: a | instance

Re: [Haskell-cafe] know a workaround for greedy context reduction?

2008-12-07 Thread Nicolas Frisby
December 2008 03:23 | To: haskell Cafe | Subject: [Haskell-cafe] know a workaround for greedy context reduction? | | With these three declarations | | {-# LANGUAGE FlexibleInstances #-} | {-# LANGUAGE UndecidableInstances #-} | | class C a where c :: a | class C a = D a where d

[Haskell-cafe] know a workaround for greedy context reduction?

2008-12-05 Thread Nicolas Frisby
With these three declarations {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UndecidableInstances #-} class C a where c :: a class C a = D a where d :: a instance C a = D a where d = c ghci exhibits this behavior: * :t d d :: (C a) = a Where I would prefer d :: (D a) = a. In my