
Looks like my mistake was much more trivial: one of the numerious
*ViewModels of old project did import instances from GenericStandard,
that's why everything was working.
And my crude attempts (with manual 'instance ...') were not adequate.
On Sun, Jun 21, 2015 at 6:12 PM, Brandon Allbery
On Sun, Jun 21, 2015 at 7:34 AM, Ilya Seleznev
wrote: Problem is - it didn't do that before. What even more confusing, older project[0] uses same approach, compiles (same machine, same compiler) and works just fine! I've exhausted all means to fix the problem that I could think off: - Adding 'instance Template.ToSElem Foo' allows code to compile but it doesn't work and prints message in console like this: Main.hs:30:10-29: No instance nor default method for class operation Text.StringTemplate.Classes.toSElem
This makes me think you have multiple versions of that package around and your new project has managed to use both, such that it finds an instance in the wrong version of the package which will not be considered compatible with the instance it is looking for.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-- With best regards, Ilya Seleznev