ghci
The Glasgow Haskell Compiler's interactive environment. More information: <https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html>.
Install
- All systems
-
curl cmd.cat/ghci.sh
- Debian
-
apt-get install ghc
- Ubuntu
-
apt-get install ghc
- Alpine
-
apk add ghc
- Arch Linux
-
pacman -S ghc
- Kali Linux
-
apt-get install ghc
- Fedora
-
dnf install ghc-compiler
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install ghc
- OS X
-
brew install ghc
- Raspbian
-
apt-get install ghc
- Dockerfile
- dockerfile.run/ghci
- Docker
-
docker run cmd.cat/ghci ghci
powered by Commando
The Glasgow Haskell Compiler's interactive environment. More information: <https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html>.
-
Start a REPL (interactive shell):
ghci
-
Start a REPL and load the specified Haskell source file:
ghci source_file.hs
-
Start a REPL and enable a language option:
ghci -Xlanguage_option
-
Start a REPL and enable some level of compiler warnings (e.g. `all` or `compact`):
ghci -Wwarning_level
-
Start a REPL with a colon-separated list of directories for finding source files:
ghci -ipath/to/directory1:path/to/directory2
© tl;dr; authors and contributors