commands.sh

ghci

all

The Glasgow Haskell Compiler's interactive environment.

More info →

Examples (5)

Start a REPL (interactive shell)

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:...
made by @shridhargupta | data from tldr-pages