started to cause complaints from GHC (7.8.2 and 7.8.4 on Linux x86_64):
No instance for (Template.ToSElem Foo)
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
- Tried to use same version of HStringTemplate deps (syb was different)
- All kinds of desperate messing around (exporting records from modules, changing field names...)
- Updated ghc from 7.8.2 to 7.8.4
- Googled error messages
to no avail.
I hope almighty All would give me some ideas/directions because I have none left.
--
With best regards,
Ilya Seleznev