You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the remaining issue with parametrized modules after the merging of #307:
recordClass (a :Set) :Setwherefieldfoo : a → a
openClass {{...}} public{-# COMPILE AGDA2HS Class class #-}moduleM1 (@0 X :Set) whereinstanceClassInt : Class Int
ClassInt .foo = _+ 1{-# COMPILE AGDA2HS ClassInt #-}moduleM2 (@0 X :Set) whereopenM1 X
tester : Int
tester = foo 41{-# COMPILE AGDA2HS tester #-}
Error message:
No instance of type M1.Class X Int was found in scope.
The problem is that we are using the instance table of the top-level module rather than the one that was used inside the module M2, and this top-level instance table does not include the instances from locally opened modules. However, I do not know of any way to reconstruct this instance table.
The text was updated successfully, but these errors were encountered:
This is the remaining issue with parametrized modules after the merging of #307:
Error message:
The problem is that we are using the instance table of the top-level module rather than the one that was used inside the module
M2
, and this top-level instance table does not include the instances from locally opened modules. However, I do not know of any way to reconstruct this instance table.The text was updated successfully, but these errors were encountered: