Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think that error message is a result of
UndecidableInstances
masking the real problem. Without that option, GHC throws an error, that it can not see, that the functional dependencyt → r
is satisfied in the second instance:Removing the functional dependency resolves that, but then GHC complains about an ambiguous type in
polyList
.I have no idea how to resolve that. I have been banging my head against the wall for a whole day trying to get a similar solution working, before settling for a less elegant solution.
As mentioned in initial code, the combinators are already defined in Preloaded. They should be used instead of defining your own.