[Haskell-cafe] Troubles with HStringTemplate (compilation/runtime errors)
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 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
> 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
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
With best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe