Hacker News new | past | comments | ask | show | jobs | submit login

> ... prove that this type forms a monad.

How do I “prove” a type forms a monad? I only have to implement `lift` and `bind` with the correct behavior, and I have a monadic interface. Did I prove then that the type forms a monad?




Assuming "correct behavior" mean no bottom, and follow monad law, yes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: