[Haskell-cafe] Re: Functional Dependencies Help

2010-05-01 Thread John Creighton
The errors in the older code were due to not supplying enough input arguments to all my class instance declarations. My final code works and is pasted bellow: {-# LANGUAGE EmptyDataDecls, MultiParamTypeClasses, ScopedTypeVariables, FunctionalDependencies,

[Haskell-cafe] Re: Functional Dependencies Help

2010-05-01 Thread John Creighton
On Apr 30, 6:18 pm, John Creighton wrote: > On Apr 29, 7:47 am, John Creighton wrote: > > > I've been trying to apply some stuff I learned about functional > > dependencies, but I run into one of two problems. I either end up with > > inconsistent dependencies (OverlappingInstances  doesn't see

[Haskell-cafe] Re: Functional Dependencies Help

2010-04-30 Thread John Creighton
On Apr 29, 7:47 am, John Creighton wrote: > I've been trying to apply some stuff I learned about functional > dependencies, but I run into one of two problems. I either end up with > inconsistent dependencies (OverlappingInstances doesn't seem to > apply) or I end up with infinite recursion. I w