[Haskell-beginners] accessor function scope