I'm trying to install the sbv
module https://hackage.haskell.org/package/sbv
Installation with Stack works great (no errors):
stack install sbv
but then I cannot import the corresponding module in stack ghci
:
import Data.SBV
-- <no location info>: error:
-- Could not find module ‘Data.SBV’
-- Perhaps you meant Data.Set (from containers-0.6.2.1)
Now, when I try with Cabal instead:
cabal new-install sbv --lib
Everything runs smoothly on ghci
import Data.SBV
prove $ \x -> x `shiftL` 2 .== 4 * (x::SWord8)
--- Q.E.D. (<-- this is the expected output)
However, still no luck with stack ghci
(same error as before). This is the case whether stack install sbv
was done globally or in the context of a Stack project.
Is there a way to make sbv
work with the Stack installation (even if it was installed via cabal)?