Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i unset :set -v from ghci?

I had some troubles earlier importing System.Random, and in the process of trying to fix this I did the command :set -v in the ghci terminal.

So now whenever I use :r, I get a lot of unnecessary information. So how do i unset the :set -v command?

like image 554
Sondre Lindaas Gjesdal Avatar asked Dec 02 '20 19:12

Sondre Lindaas Gjesdal


People also ask

How do I get out of GHCi?

Quits GHCi. You can also quit by typing control-D at the prompt. Attempts to reload the current target set (see :load ) if any of the modules in the set, or any dependent module, has changed. Note that this may entail loading new modules, or dropping modules which are no longer indirectly required by the target.

What does GHCi mean in Haskell?

Introduction. GHCi is GHC's interactive environment, in which Haskell expressions can be interactively evaluated and programs can be interpreted.

How do I run in GHCi?

Open a command window and navigate to the directory where you want to keep your Haskell source files. Run Haskell by typing ghci or ghci MyFile. hs. (The "i" in "GHCi" stands for "interactive", as opposed to compiling and producing an executable file.)


1 Answers

You can set the verbosity level to level n with :set -vn. If you write -v, this is short for -v3. The default verbosity level is 0, so you can set the verbosity level back to 0 with:

:set -v0
like image 159
Willem Van Onsem Avatar answered Oct 20 '22 09:10

Willem Van Onsem