[Haskell-cafe] Troubles with HStringTemplate (compilation/runtime errors)

Ilya Seleznev itsuart at gmail.com
Sun Jun 21 15:28:09 UTC 2015

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 <allbery.b at gmail.com>

> On Sun, Jun 21, 2015 at 7:34 AM, Ilya Seleznev <itsuart at gmail.com> 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 at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net

With best regards,
Ilya Seleznev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150621/7c2817b3/attachment.html>

More information about the Haskell-Cafe mailing list