<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Friends</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'm trying to repro #25064 with my development build of GHC. The test case depends on packages `primitive` and `hashtables`. So I try this (see below).</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Alas, apparently after the `cabal install`, it can't find Prelude.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">What should I do? I tried removing the "environments" file, whatever that is, which then meant it could find Prelude -- but the libraries were no longer installed.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I lack a decent model of what is going on with installing packages for my development builds. Is there a write up anywhere?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Simon</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:monospace">bash$ cabal install --lib hashtables primitive --with-compiler $HOME/code/HEAD/$s2<br>Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.1.0 supports<br>'ghc' version < 9.8): /home/simonpj/code/HEAD/_build/stage1/bin/ghc is version<br>9.11.20240517<br>Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.1.0 supports<br>'ghc' version < 9.8): /home/simonpj/code/HEAD/_build/stage1/bin/ghc is version<br>9.11.20240517<br>Resolving dependencies...<br></span>
<span style="font-family:monospace">bash$ </span><span style="font-family:monospace"> ~/code/HEAD/$s2 -c T25064.hs<br>Loaded package environment from <br>T25064.hs:1:8: error: [ ]8;;<a href="https://errors.haskell.org/messages/GHC-87110">https://errors.haskell.org/messages/GHC-87110</a> \GHC-87110 ]8;; \]<br> Could not load module ‘Prelude’.<br> It is a member of the hidden package ‘base-4.20.0.0’.<br> Use -v to see a list of the files searched for.<br> |<br>1 | module Bug where<br> | ^^^<br><br>bash$ rm /home/simonpj/.ghc/x86_64-linux-9.11.20240517/environments/default<br>bash$ ~/code/HEAD/$s2 -c T25064.hs<br>T25064.hs:3:1: error: [ ]8;;<a href="https://errors.haskell.org/messages/GHC-61948">https://errors.haskell.org/messages/GHC-61948</a> \GHC-61948 ]8;; \]<br> Could not find module ‘Control.Monad.Primitive’.<br> Perhaps you meant Control.Monad.Writer (from mtl-2.3.1)<br> Use -v to see a list of the files searched for.<br> |<br>3 | import Control.Monad.Primitive<br> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br><br>T25064.hs:4:1: error: [ ]8;;<a href="https://errors.haskell.org/messages/GHC-87110">https://errors.haskell.org/messages/GHC-87110</a> \GHC-87110 ]8;; \]<br> Could not find module ‘Data.HashTable.ST.Basic’.<br> Use -v to see a list of the files searched for.<br> |<br>4 | import qualified Data.HashTable.ST.Basic as H<br> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br><br><br></span></div></div>