ndmitchell / debug

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

Typing DebugView.debugView is now needed... #49

Open marklnichols opened 6 years ago

marklnichols commented 6 years ago

Can we reconfigure things so that only 'debugView' needs to be entered as per the current documentation?

ndmitchell commented 6 years ago

As far as I can tell, the current docs still work. What problem are you seeing?

marklnichols commented 6 years ago

I get:

interactive :1:1: error:

ndmitchell commented 6 years ago

What instructions are you following? Any deviations?

marklnichols commented 6 years ago

It seems that all such problems go away if I specifically load the Debug module via :m + Debug

The different form of the error message (with the "Perhaps you meant...") made me think it was a different problem...so it is covered by the documentation (via the comment in the FAQ)

I seem to always need to specifically load Debug via. :m -- do you not need to do that? I can't find anything I'm doing differently from the instructions, other than using stack commands for ghci, etc.

Maybe that ":m + Debug" should be part of the main instructions rather than part of the FAQ?

ndmitchell commented 6 years ago

Which instructions are you following? I'm following the ones at https://github.com/ndmitchell/debug#haskell-debugger----

marklnichols commented 6 years ago

Yes, those same instructions. Could it be a difference between calling ghci directly vs stack ghci?

ndmitchell commented 6 years ago

Which debug is stack ghci picking up? Does the issue go away if you run ghci directly? What happens if you run stack exec ghc-pkg list?