I've run into a similar problem with tidal's emacs mode before (when I want to import Data.Map, I need to :set -package containers and this kills the tidal session (tidal emacs mode) how to import from hidden packages? ) and I'd like to know how this should be dealt with properly.
I can think of these work-arounds:
-
do
cabal install --lib tidal-core(run from a console, once.) This will expose all modules from that package, so you canimportthem fromghci, without any-packagedeclaration. -
add a line
:set -package tidal-coretoBootTidal.hs
both are quite heavy-handed, and would have to be repeated for any extra package that I might want to use.