You are not logged in.

#1 2017-09-22 14:57:08

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Haskell - could not find modules, There are files missing in base

Hi, I've never had this before but I just tried to use ghc and now get:

Could not find module 'Prelude'

There are files missing in the ‘base-4.10.0.0’ package

Try running 'ghc-pkg check'

ghc-pkg check returns: https://pastebin.com/aCmr9igi

Any ideas how to fix all this? I've tried deleting stuff, reinstalling. Always the same errors. Seems like i need to replace those docs somehow but how?

Offline

#2 2017-09-22 15:03:31

seth
Member
Registered: 2012-09-03
Posts: 17,333

Offline

#3 2017-09-22 15:19:42

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: Haskell - could not find modules, There are files missing in base

so unless i'm missing something, there isn't a fix?

Offline

#4 2017-09-22 15:31:58

seth
Member
Registered: 2012-09-03
Posts: 17,333

Re: Haskell - could not find modules, There are files missing in base

No idea - the stuff might be provided by ghc-static, but I've no real idea what's going on there (haskell is filed under M.E.S.S. in my brain...)

Offline

#5 2017-09-25 19:13:32

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: Haskell - could not find modules, There are files missing in base

This is an issue for me too.

I am using cabal to install a package and see the exact same errors ever since updating.

Is this an issue with the package? Do we need to file a bug report?

Offline

#6 2017-09-25 19:34:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,068
Website

Re: Haskell - could not find modules, There are files missing in base

olig1905 wrote:

This is an issue for me too.

So, you don't search and then you decide to spam every thread with your issue? Consider this your final warning.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-09-25 19:40:15

seth
Member
Registered: 2012-09-03
Posts: 17,333

Re: Haskell - could not find modules, There are files missing in base

Also your crosspost me-too rather suggests you lack a bunch of haskell-* packages (what admittedly seems to be the OPs main problem as well, rather than the absent documentation in everybodies error posts)

Offline

#8 2017-09-25 21:19:39

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: Haskell - could not find modules, There are files missing in base

Sorry for posting to the 2 posts that you linked me to jason. I am not trying to be a pain. There is an issue here that as users update their systems more and more people are going to experience.

seth: please see this: https://bbs.archlinux.org/viewtopic.php … 5#p1738225

No haskell-* packages come into play here it can't even use prelude. Which I guess comes from the ghc-libs package.

The more I think about it though the less I think the documentation is the actual issue I am experiencing and that that is just obfuscating things.

Anyway for jason's sanity I will keep all future posts on the xmonad thread as that is where the most active discussion is happening.

Offline

#9 2017-09-25 21:26:00

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: Haskell - could not find modules, There are files missing in base

OOPS... Turns out maybe here will be the better place. Or would you prefer a new one now jason??

https://bbs.archlinux.org/viewtopic.php … 0#p1738230

Offline

#10 2017-09-25 21:42:45

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: Haskell - could not find modules, There are files missing in base

So as per suggested by rata i have resolved my problem by using stack. This doesn't change the fact that cabal-install is not working.

Offline

#11 2017-09-25 22:08:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,068
Website

Re: Haskell - could not find modules, There are files missing in base

This is covered in multiple threads, all of which you are determined to keep spamming, despite being asked to desist.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2017-09-26 06:56:13

seth
Member
Registered: 2012-09-03
Posts: 17,333

Re: Haskell - could not find modules, There are files missing in base

olig1905 wrote:

No haskell-* packages come into play here it can't even use prelude. Which I guess comes from the ghc-libs package.

I'd rather guess it comes from

pacman -Qi haskell-base-prelude

?

Offline

#13 2017-12-08 09:44:39

jkhsjdhjs
Member
Registered: 2017-09-05
Posts: 33

Re: Haskell - could not find modules, There are files missing in base

Try compiling with

ghc -dynamic

Offline

#14 2018-02-16 20:37:06

ray040123
Member
Registered: 2011-11-15
Posts: 2

Re: Haskell - could not find modules, There are files missing in base

That worked. Also, the issue is gone after installing ghc-static.

jkhsjdhjs wrote:

Try compiling with

ghc -dynamic

Offline

Board footer

Powered by FluxBB