agda2hs icon indicating copy to clipboard operation
agda2hs copied to clipboard

Typeclass instances not imported.

Open bwbush opened this issue 9 months ago • 0 comments

If an Agda module only contains typeclass instances (i.e., orphans), then agda2hs code in other modules do not have an import statement generated for the module with the instances.

Here is an example that shows the workaround for the missing import:

open import Peras.QCD.Types.Instances

{-# FOREIGN AGDA2HS
import Peras.QCD.Types.Instances ()
#-}

bwbush avatar May 09 '24 15:05 bwbush