unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37366: ghci can't find System.IO
@ 2019-09-10  9:49 P via Bug reports for GNU Guix
  2020-06-11  4:25 ` Royce Strange
  0 siblings, 1 reply; 2+ messages in thread
From: P via Bug reports for GNU Guix @ 2019-09-10  9:49 UTC (permalink / raw)
  To: 37366

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.
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#37366: ghci can't find System.IO
  2019-09-10  9:49 bug#37366: ghci can't find System.IO P via Bug reports for GNU Guix
@ 2020-06-11  4:25 ` Royce Strange
  0 siblings, 0 replies; 2+ messages in thread
From: Royce Strange @ 2020-06-11  4:25 UTC (permalink / raw)
  To: 37366-done

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-11  4:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10  9:49 bug#37366: ghci can't find System.IO P via Bug reports for GNU Guix
2020-06-11  4:25 ` Royce Strange

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).