Issue importing Sound.Tidal.Chords (hidden package error in Pulsar/Atom)

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 can import them from ghci, without any -package declaration.

  • add a line :set -package tidal-core to BootTidal.hs

both are quite heavy-handed, and would have to be repeated for any extra package that I might want to use.

1 Like