What is a good way to debug haskell code?
问题 I have used the ghci debugger but would really prefer if it was somewhat integrated with a text editor to simplify the process of setting breakpoints. It should probably not strictly evaluate every visible variable but at least simplify the process of looking at the local state. I recently found the trace function which has been helpful by allowing debug printouts from otherwise hard places. 回答1: A good way to debug Haskell code is to write and test algebraic laws using QuickCheck and