agda / agda2hs

Compiling Agda code to readable Haskell

Home Page:https://agda.github.io/agda2hs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typeclass instances not imported.

bwbush opened this issue · 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 ()
#-}