GHCi
GHCi, short for the Glasgow Haskell Compiler interactive environment, is the interactive Read-Eval-Print-Loop (REPL) provided with the Glasgow Haskell Compiler (GHC). It offers a fast, incremental way to develop, test, and explore Haskell code by evaluating expressions, loading modules, and inspecting types without an explicit compilation step.
As a Haskell interpreter built on the GHC backend, GHCi compiles and runs code on demand. It
Common commands include :set to adjust options, :module to change the active module, and :! to run
Starting and using GHCi is straightforward: run ghci at the command line, optionally with a file to