<div dir="ltr"><div class="gmail_extra"><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>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.<br><div><br></div>-- <br><div class="gmail_signature"><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>
</div></div>