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
The presence of imports sometimes causes ccc to try to load hidden modules, which causes compilation to fail. For example, this module:
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fplugin=ConCat.Plugin -fplugin-opt ConCat.Plugin:trace #-}
moduleLoadsHiddenModulewhereimportConCat.AltCatimportqualifiedData.Aesonf::a->a
f = ccc @(->) (\x -> x)
will produce output like this:
[1 of 1] Compiling LoadsHiddenModule ( LoadsHiddenModule.hs, LoadsHiddenModule.o )
go ccc (->): \ (x_adEQ :: a_adF0) -> x_adEQ :: a_adF0 -> a_adF0
Doing lam Id
user error (Errors:
<interactive>:1:1: error:
Failed to load interface for ‘Data.Attoparsec.Text.Internal’
it is a hidden module in the package ‘attoparsec-0.13.1.0’
Use -v to see a list of the files searched for.
Warnings:)
However, if the import qualified Data.Aeson is removed, compilation will succeed and work as expected.
The text was updated successfully, but these errors were encountered:
Thanks for the report. I have a fragile workaround, and I'm working on a real solution, which requires that I remove hidden modules from the set of orphan modules (transitively for the module being compiled). Much of GHC is still pretty mysterious to me.
I'd love to hear about what you're up to with compiling to categories.
The presence of imports sometimes causes
ccc
to try to load hidden modules, which causes compilation to fail. For example, this module:will produce output like this:
However, if the
import qualified Data.Aeson
is removed, compilation will succeed and work as expected.The text was updated successfully, but these errors were encountered: