Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#65661 - [ghc-libs] could not find module 'Prelude'; missing files in the 'base-4.13.0.0' package
Attached to Project:
Community Packages
Opened by Konstantin Terziev (bobchorba) - Saturday, 29 February 2020, 10:16 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 29 February 2020, 12:35 GMT
Opened by Konstantin Terziev (bobchorba) - Saturday, 29 February 2020, 10:16 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 29 February 2020, 12:35 GMT
|
DetailsDescription: Could not find module ‘Prelude’.
There are files missing in the ‘base-4.13.0.0’ package. Additional info: * package version(s) 8.8.3-1 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: When a*.hs file is opened in emacs this error pops-up in the minibuffer: Could not find module ‘Prelude’ There are files missing in the ‘base-4.13.0.0’ package, try running 'ghc-pkg check'. Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
This task depends upon
> $ echo 'main = putStrLn "ohai"' > ohai.hs
> $ ghc ohai.hs
> [1 of 1] Compiling Main ( ohai.hs, ohai.o )
>
> ohai.hs:1:1: error:
> Could not find module ‘Prelude’
> There are files missing in the ‘base-4.13.0.0’ package,
> try running 'ghc-pkg check'.
> Use -v (or `:set -v` in ghci) to see a list of the files searched for.
> |
> 1 | main = putStrLn "ohai"
> | ^
Works:
> $ ghc -dynamic ohai.hs
Ghc defaults to static linking, but ghc-libs ships only dynamic versions.
Making the default ghc installation essentially broken on Arch.