kleisli
kleisli copied to clipboard
Store stack trace in None and Left
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?
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?