I have a data
type :
data BuildException a = KillBuild JobID a Stage
| FailBuild JobID a Stage
| CancelBuild JobID a Stage
| StopBuild JobID a Stage
deriving Typeable
where a has to have an instance for class Foo. I remember reading (in RWH, maybe) that
while it was possible to have class constraints in a data
definition, it was not desirable.
What's the proper way to do this then?