-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Pulling along the hs-bindgen Nix tutorial, I noticed that we now have to add build dependencies primitive and ghc-prim.
I think the declarations we use from there should be re-exported from hs-bindgen-runtime (but there may be complications I am not aware of).
I am leaving this ticket here, so we don't forget to discuss this.
Relevant error:
> src/Generated/Pcap.hs:26:1: error: [GHC-87110]
> Could not load module ‘Data.Primitive.Types’.
> It is a member of the hidden package ‘primitive-0.9.1.0’.
> Perhaps you need to add ‘primitive’ to the build-depends in your .cabal file.
> Use -v to see a list of the files searched for.
> |
> 26 | import qualified Data.Primitive.Types
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> src/Generated/Pcap.hs:40:1: error: [GHC-87110]
> Could not load module ‘GHC.Prim’.
> It is a member of the hidden package ‘ghc-prim-0.12.0’.
> Perhaps you need to add ‘ghc-prim’ to the build-depends in your .cabal file.
> Use -v to see a list of the files searched for.
> |
> 40 | import GHC.Prim ((*#), (+#))