I have recently downloaded ghci, however when i try to compile my .hs file it says that IO module is in the hidden package haskell98-2.0.0.1. When i expose it using ghc-pkg expose haskell98-2.0.0.1, it then had a problem with base and prelude saying that prelude is ambiguous.
How can i get around this so i can compile my program correctly? Thanks in advance.
If you are using ghc, you should use System.IO module, that is part of
basepackage. Haskel-98 is… well, out of fashion now. If you want to stick with haskell-98 (this will make impossible to work with most existing libraries), you should exposehaskell98and hidebase, as bothbaseandhaskell98containPreludemodule, so compiler cannot guess which one to import, and it has to import Prelude some way because of standard.