I'm trying to build my own cabal package, where one of the modules use Control.Monad.State, but I get the following error:
executable/Example.hs:5:8:
Could not find module `Control.Monad.State'
It is a member of the hidden package `mtl-2.1.2'.
Perhaps you need to add `mtl' to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
I have added mtl to the build-depends without success. I read about others having issues when building for profiling and mtl wasn't built for that, but I shouldn't be building for profiling. I have both library-profiling and executable-profiling explicitly set to False in ~/.cabal/config.
I'm on Mac OS