Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description: 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

Comment by Fnord Popos (noddy) - Wednesday, 04 March 2020, 19:27 GMT
Repro:

> $ 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.
Comment by Konstantin Terziev (bobchorba) - Thursday, 05 March 2020, 12:01 GMT
It worked after installing 'ghc-static' too.

Loading...