After installing ghci stack, when I run just ghci (version 9.2.7) in terminal and enter some expression such as 1+1 I get the following error:
:1:2: error: Variable not in scope: (+) :: t0 -> t1 -> t
I have been unable to parse what the error message is suggesting or where to look for the issue. Thank you very much for your consideration.
You likely started
ghciwith-XNoImplicitPrelude, in that case it does not import the prelude.You can import the prelude to load the basic functions:
You should inspect the
.cabalor.stackfile of your project if it contains a directive to disable loading thePreludeimplicitly.