:print

Contents
  • Experimenting with laziness
  • :sprint
  • Beware of polymorphism
  • :force

The :printGHC documentation: :print, :sprint, :force command in GHCi prints a value without forcing any evaluation. This is useful for inspecting values that are not normally printable, and for experimenting to find out which parts of a data structure are evaluated.

This lesson covers three closely related commands:

  • :print
  • :sprint
  • :force

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