I'd like to try out the Writer
monad in ghci. As advised here, I tried to use only stack to manage GHC and packages, and avoid a global installation.
From a fresh Ubuntu 15.04 install, after installing stack:
stack setup
mkdir lyah && cd lyah
stack new
stack install mtl
stack ghci
ghci> import Control.Monad.Writer
Could not find module ‘Control.Monad.Writer’
It is a member of the hidden package ‘mtl-2.1.3.1’.
I understand that pre-stack ghc-pkg was used to show/hide packages, but I'm not sure how to proceed here to 'unhide' the mtl package.