<div dir="ltr">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.<br>And my crude attempts (with manual 'instance ...') were not adequate.   <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 21, 2015 at 6:12 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Sun, Jun 21, 2015 at 7:34 AM, Ilya Seleznev <span dir="ltr"><<a href="mailto:itsuart@gmail.com" target="_blank">itsuart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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!<br></div><div>I've exhausted all means to fix the problem that I could think off:<br></div><div>- Adding 'instance Template.ToSElem Foo' allows code to compile but it doesn't work and prints message in console like this:<br>  Main.hs:30:10-29: No instance nor default method for class operation Text.StringTemplate.Classes.toSElem<br></div><div></div></blockquote></div><br></span>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.<span class="HOEnZb"><font color="#888888"><br><div><br></div>-- <br><div><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">With best regards,<br>Ilya Seleznev</div>
</div>