| Start |
|---|
| Breakpoints with GHCi GHCi supports imperative-style breakpoints out of the box with interpreted code (code that's been With the following program: loaded into GHCi: We can now set breakpoints using line numbers: and GHCi will stop at the relevant line when we run the function: It might be confusing where we are in the program, so we can use We can print variables, and continue execution too: |
| Starting GHCi Type |
| Changing the GHCi default prompt By default, GHCI's prompt shows all the modules you have loaded into your interactive session. If you have many modules loaded this can get long: The To change the prompt permanently, add |
| The GHCi configuration file GHCi uses a configuration file in |
| Loading a file The |
| Quitting GHCi You can quit GHCi simply with Alternatively, the shortcut CTRL+D (Cmd+D for OSX) has the same effect as |
| Reloading a already loaded file If you have loaded a file into GHCi (e.g. using |
| Multi-line statements The RemarksGHCI is the interactive REPL that comes bundled with GHC. |
Read Article
https://develop.horje.com/learn/1434/reference