Subject: bug#37366: closed (ghci can't find System.IO)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 11 Jun 2020 04:26:02 +0000

Your bug report

#37366: ghci can't find System.IO

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
37366: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37366
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: ghci can't find System.IO
From: Royce Strange <[email-masked]>
To: [email-masked]
Date: Wed, 10 Jun 2020 23:25:27 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello.

Found the ghc reported to have issues:
https://ci.guix.gnu.org/build/1567747/details

Going back in time to the commit that corresponds
with the ghc that was reported to be broken:
-----
$ guix time-machine --commit=caa366ec230ccc42f5c8d90d36e8cac933053a81 \
-- environment --pure --ad-hoc ghc

[env]$ ghci
GHCi, version 8.6.5: http://www.haskell.org/ghc/  :? for help

<interactive>:1:6: error:
    Not in scope: `System.IO.hSetBuffering'
    No module named `System.IO' is imported.

<interactive>:1:30: error:
    Not in scope: `System.IO.stdin'
    No module named `System.IO' is imported.
...
...
-----
It was indeed broken.

I believe 83aa6562173e06e8fafd4857a2e708feabfe56f8 fixed this.
Validating that ghci can actually start properly now
with a current version of guix:
-----
$ guix --version
guix (GNU Guix) 2971ed57345ee4e00058efeaf27c6a0790fdc9dd

$ guix environment --pure --ad-hoc ghc -- ghci
GHCi, version 8.6.5: http://www.haskell.org/ghc/  :? for help
Prelude> 1 + 2
3
-----

Going to go ahead and close.

Subject: ghci can't find System.IO
From: P <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 10 Sep 2019 09:49:47 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

with the latest ghc (qhws2nyqmjansrnqf78mz87l74v01mfx-ghc-8.6.5) i cannot start ghci, due to the following error[1]

I do not have any other Haskell package in my profile

[1]:
```
GHCi, version 8.6.5: http://www.haskell.org/ghc/  :? for help

<interactive>:1:6: error:
    Not in scope: ‘System.IO.hSetBuffering’
    No module named ‘System.IO’ is imported.

<interactive>:1:30: error:
    Not in scope: ‘System.IO.stdin’
    No module named ‘System.IO’ is imported.

<interactive>:1:46: error:
    Not in scope: data constructor ‘System.IO.NoBuffering’
    No module named ‘System.IO’ is imported.

<interactive>:1:70: error:
    Not in scope: ‘System.IO.hSetBuffering’
    No module named ‘System.IO’ is imported.

<interactive>:1:94: error:
    Not in scope: ‘System.IO.stdout’
    No module named ‘System.IO’ is imported.

<interactive>:1:111: error:
    Not in scope: data constructor ‘System.IO.NoBuffering’
    No module named ‘System.IO’ is imported.

<interactive>:1:135: error:
    Not in scope: ‘System.IO.hSetBuffering’
    No module named ‘System.IO’ is imported.

<interactive>:1:159: error:
    Not in scope: ‘System.IO.stderr’
    No module named ‘System.IO’ is imported.

<interactive>:1:176: error:
    Not in scope: data constructor ‘System.IO.NoBuffering’
    No module named ‘System.IO’ is imported.
```