ndmitchell / debug

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

Feature/mark #16

Closed marklnichols closed 6 years ago

marklnichols commented 6 years ago

This is the first pass at displaying values for intermediate function calls. The function added to Main.hs should result in this UI:

Source

g :: forall a . Integral a => a -> a -> Double
g x y =    
   let least = lcm x y
   in fromIntegral least ^^ gcd x y

Variables

I disabled infix function handling for this PR, I realized I have to do some substitution to create legal variable names for some of the operator functions.

The couple of tests I added should be automated hspec, etc. tests, but I left them as just 'prints' for now to avoid breaking your build.

ndmitchell commented 6 years ago

I should say more generally that it looks quite plausible, thanks a lot. I've got the flu right now so not in a detail state of mind but will get to it soon.

marklnichols commented 6 years ago

Ok, feel better.

ndmitchell commented 6 years ago

Thanks - looks good!