Closed jvoigtlaender closed 4 months ago
To be able to better judge how things will turn out in Autotool, I assume it would make sense to do the following two things.
In https://github.com/fmidue/output-monad/blob/d469ed0b22df718dde4d4d718a7f6fd54cfe2a0d/output-monad/src/Control/Monad/Output/Debug.hs#L43-L44 additionally print out how value would look pretty-printed. That is, how it turns out with the Pretty instead of the Show instance.
value
Pretty
Show
That should help identify issues in situations like this: https://github.com/fmidue/logic-tasks/issues/81#issuecomment-1917269129
In https://github.com/fmidue/output-monad/blob/d469ed0b22df718dde4d4d718a7f6fd54cfe2a0d/output-monad/src/Control/Monad/Output/Debug.hs#L46-L49 whenever partialRes == Nothing, print out a reminder that the stuff after ---- Complete ---- would not actually be printed in Autotool.
partialRes == Nothing
---- Complete ----
To be able to better judge how things will turn out in Autotool, I assume it would make sense to do the following two things.
1.
In https://github.com/fmidue/output-monad/blob/d469ed0b22df718dde4d4d718a7f6fd54cfe2a0d/output-monad/src/Control/Monad/Output/Debug.hs#L43-L44 additionally print out how
value
would look pretty-printed. That is, how it turns out with thePretty
instead of theShow
instance.That should help identify issues in situations like this: https://github.com/fmidue/logic-tasks/issues/81#issuecomment-1917269129
2.
In https://github.com/fmidue/output-monad/blob/d469ed0b22df718dde4d4d718a7f6fd54cfe2a0d/output-monad/src/Control/Monad/Output/Debug.hs#L46-L49 whenever
partialRes == Nothing
, print out a reminder that the stuff after---- Complete ----
would not actually be printed in Autotool.