Contents
- Experimenting with laziness
:sprint
- Beware of polymorphism
:force
The :print
GHC 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