Using GHCi

List of GHCi commands

Non-exhaustive list of commands:

  • :all-types
  • :browse
  • :info
  • :kind
  • :load
  • :loc-at
  • :main <args> – Runs a main with some arguments
  • :module
  • :quit
  • :reload
  • :force
  • :set
  • :show – Followed by modules, it lists the modules that are currently in scope; followed by imports, it lists the imports that are in scope.
  • :sprint – Prints what has been evaluated so far while showing thunks with an underscore. Helpful for understanding laziness.
  • :type
  • :type-at
  • :uses

Type Classes offers courses and projects to get you started and make you an expert in FP with Haskell. For $29/month, you get access to the complete archive and all the latest content.