Re: [Haskell-cafe] FD problem in GHC 6.6

2006-12-20 Thread Robert Dockins
On Dec 19, 2006, at 10:11 PM, Dan Weston wrote: instance CommandFunction (Sh st ()) st where ^ I think your first argument (on which the second has a functional dependence) does not determine the second argument, since it makes use of st in the first

Re: [Haskell-cafe] FD problem in GHC 6.6

2006-12-20 Thread Iavor Diatchki
Hi, I don't have a solution for you problem (besides using undecidable instances) but I can explain the coverage condition. On 12/19/06, Robert [EMAIL PROTECTED] wrote: class CommandFunction f st | f - st where parseCommand :: String - f - CommandParser st commandSyntax :: f - [Doc] The

[Haskell-cafe] FD problem in GHC 6.6

2006-12-19 Thread Robert
Fellow Haskellers, I have a package that uses some light typeclass hackery to automaticly build parsing algorithms based on the type of a function. I was recently informed that my package doesn't compile on GHC 6.6 due to the new restrictions on FD resolution; in particular I have instance

Re: [Haskell-cafe] FD problem in GHC 6.6

2006-12-19 Thread Dan Weston
instance CommandFunction (Sh st ()) st where ^ I think your first argument (on which the second has a functional dependence) does not determine the second argument, since it makes use of st in the first argument. This strikes me as a likely place to begin. Dan