Effective Haskell: Missing import statement (ch. 5, p. 193, pdf, P1.0)


The book seems to be missing an import statement like

λ import HaskellBook.Examples.Introduction.CreatingModules (Name (Name))

in this passage;

We’ll start by importing the Name type and its constructor, but not the getName field selector:

λ exampleName = Name "haskeller"
λ getName exampleName

<interactive>:5:1: error:
Variable not in scope: getName :: Name -> t