- Enter GHCi (via Stack)
stack ghci
- Enable functions to break on exceptions
:set -fbreak-on-exception
- Reload GHCi
:reload -- Also :r
- Call and trace your function
:trace myFunction x y z
- Use :historyand:backto move through the "call stack"