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
I use doctests in the ip package. With version 0.8.7 (and probably with others), running stack test causes everything to run successfully. If instead, I run:
It fails. I get a lot of Failed to load interface errors:
src/Net/IPv4.hs:30:1: error:
Failed to load interface for ‘Net.Types’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:34:1: error:
Failed to load interface for ‘Data.Hashable’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:35:1: error:
Failed to load interface for ‘Data.Aeson’
Perhaps you meant Data.Version (from base-4.9.0.0)
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:37:1: error:
Failed to load interface for ‘Net.Internal’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:39:1: error:
Failed to load interface for ‘Data.Text.Internal’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:43:1: error:
Failed to load interface for ‘Data.Vector.Generic.Mutable’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:44:1: error:
Failed to load interface for ‘Control.Monad.Primitive’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:45:1: error:
Failed to load interface for ‘Net.Internal’
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:46:1: error:
Failed to load interface for ‘Data.Text.Lazy’
Perhaps you meant
Data.Map.Lazy (from containers-0.5.7.1)
Data.STRef.Lazy (from base-4.9.0.0)
Use -v to see a list of the files searched for.
src/Net/IPv4.hs:47:1: error:
Failed to load interface for ‘Data.Text.IO’
Use -v to see a list of the files searched for.
I'm guessing that the GHCi environment that doctest ends up using is missing almost everything. How can I prevent this from happening? The reason this is actually a problem for me is that on nixpkgs, my tests fail. This can be easily confirmed by running:
nix-build -p "haskellPackages.ip"
Granted, nix actually uses cabal build instead of cabal new-build but I still run into the problem of missing packages.
The text was updated successfully, but these errors were encountered:
I use doctests in the ip package. With version 0.8.7 (and probably with others), running
stack test
causes everything to run successfully. If instead, I run:It fails. I get a lot of
Failed to load interface
errors:I'm guessing that the GHCi environment that doctest ends up using is missing almost everything. How can I prevent this from happening? The reason this is actually a problem for me is that on nixpkgs, my tests fail. This can be easily confirmed by running:
Granted, nix actually uses
cabal build
instead ofcabal new-build
but I still run into the problem of missing packages.The text was updated successfully, but these errors were encountered: