ndmitchell / debug

Haskell library for debugging
BSD 3-Clause "New" or "Revised" License
122 stars 7 forks source link

GHCi error #41

Closed marklnichols closed 6 years ago

marklnichols commented 6 years ago

stack init stack build stack ghci

gives: Loaded GHCi configuration from \debug.ghci

: error: module `main:DebugPP' is defined in multiple files
ndmitchell commented 6 years ago

Our .ghci file loads a lot of stuff, which causes things to be loaded twice. It's all a bit ugly really, and arguably a GHC bug that loading the same file twice is not idempotent, but that's going to be a long way off. Easiest way out for now it just run stack ghci --no-load. In ghcid we do this automatically if a directory has a .ghci file, so it's a pretty standard thing to do.