:info

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.

Sign up for access to the full page, plus the complete archive and all the latest content.