kleisli icon indicating copy to clipboard operation
kleisli copied to clipboard

Store stack trace in None and Left

Open wpiekutowski opened this issue 9 years ago • 1 comments

It would be useful for debugging to store a stack trace when None or Left are initialized. Especially None can sometimes survive a long way until we need to unwrap it and then we don't have any clue how we ended up with it.

Is this something that could be potentially merged?

wpiekutowski avatar Apr 21 '16 08:04 wpiekutowski

It's quite a good idea! The Left constructor could store caller.drop(1) as metadata, which could be accessed with a trace method on the Left class? Want to give it a shot @wpiekutowski?

txus avatar May 30 '16 15:05 txus