GHCi :info command

Contents
  • Info about functions
  • Info about types
  • Info about classes
  • With a bang

The :info command for GHCi isn’t the most glamorous thing in the world, but when you need information about a named entity in Haskell, it gets the job done. It generally takes one argument, which can be nearly anything that has a name. This article covers its use for a variety of things, including functions, types, and classes. GHC documentation for :info.

Join Type Classes for courses and projects to get you started and make you an expert in FP with Haskell.