I have the following RPM packages installed on my Fedora 28 system:
ghc-ghc-8.2.2-66
ghc-containers-0.5.10.2-66
According to hackage the set module should be included in the given RPMs. However trying to import Data.Set
results in
<no location info>: error:
Could not find module ‘Data.Set’
Perhaps you meant Data.Int (from base-4.10.1.0)
Did I miss something to install? How can I check which modules are available?
Edit:
$ ghc-pkg list
/usr/lib64/ghc-8.2.2/package.conf.d
base-4.10.1.0
ghc-prim-0.5.1.1
integer-gmp-1.0.1.0
rts-1.0
How do I register a module?
I would skip the operating system packages and go with
stack
:Then use
stack ghc
to run GHC; the first time it will install this: