FS#55909 - [ghc] ghci does not start when "ghc-static" is not explicitely installed
Attached to Project:
Community Packages
Opened by Philipp Claßen (PhCl) - Sunday, 08 October 2017, 01:55 GMT
Last edited by Ivy Foster (escondida) - Friday, 11 October 2019, 19:48 GMT
Opened by Philipp Claßen (PhCl) - Sunday, 08 October 2017, 01:55 GMT
Last edited by Ivy Foster (escondida) - Friday, 11 October 2019, 19:48 GMT
|
Details
Description:
After installing "ghc", the REPL ghci does not start, as its dependence "ghc-static" is missing. The package "ghc" has a dependence to "ghc-libs", but it should also depend on "ghc-static". Additional info: * ghc 8.2.1-2 Steps to reproduce: On a fresh system, install "ghc" via pacman. It will install "ghc" and "ghc-libs", but not "ghc-static". If you run "ghci", you should see this output: phil@amd8-arch:~$ ghci GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help <interactive>:1:19: error: Not in scope: ‘System.IO.hSetBuffering’ No module named ‘System.IO’ is imported. <interactive>:1:43: error: Not in scope: ‘System.IO.stdin’ No module named ‘System.IO’ is imported. <interactive>:1:60: error: Not in scope: data constructor ‘System.IO.NoBuffering’ No module named ‘System.IO’ is imported. <interactive>:1:81: error: Not in scope: ‘GHC.Base.thenIO’ No module named ‘GHC.Base’ is imported. <interactive>:1:99: error: Not in scope: ‘System.IO.hSetBuffering’ No module named ‘System.IO’ is imported. <interactive>:1:123: error: Not in scope: ‘System.IO.stdout’ No module named ‘System.IO’ is imported. <interactive>:1:140: error: Not in scope: data constructor ‘System.IO.NoBuffering’ No module named ‘System.IO’ is imported. <interactive>:1:161: error: Not in scope: ‘GHC.Base.thenIO’ No module named ‘GHC.Base’ is imported. <interactive>:1:179: error: Not in scope: ‘System.IO.hSetBuffering’ No module named ‘System.IO’ is imported. <interactive>:1:203: error: Not in scope: ‘System.IO.stderr’ No module named ‘System.IO’ is imported. <interactive>:1:220: error: Not in scope: data constructor ‘System.IO.NoBuffering’ No module named ‘System.IO’ is imported. After installing "ghc-static", it starts normally: phil@amd8-arch:~$ ghci GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help Prelude> 3 + 3 6 |
This task depends upon
> pacman -Qi ghc-static |grep Version
error: package 'ghc-static' was not found
> pacman -Qi ghc |grep Version
Version : 8.2.1-2
> ghci
GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help
Prelude> 3 + 3
6
Prelude>
Leaving GHCi.
Also I have the same problem on my system when I downgrade to ghc-8.0.2-3. Version 8.0.1-1 is not affected, though.
Strange. Well, if I'm the only one with the problem, I can install ghc-static and it works for me. Let's see if there are more with the problem. Otherwise, we could also close it if no one can reproduce it.
ghc 8.2.1-2
ghc-libs 8.2.1-2
I have not enabled haskell-core on that machine.
Looks good now. Feel free it close it, and thanks for investigating!