4 ms·
I recently had a lecture about something related to this in a course on advanced functional programming. Basically we were shown how you can implement a monad i
by bryal 8y ago
I recently had a lecture about something related to this in a course on advanced functional programming. Basically we were shown how you can implement a monad in Haskell that lets you preserve sensitive data when executed by untrusted code. Together with the SafeHaskell language extension, which disallows libraries to use operations that could potentially break the invariants, this seems like a very cool concept!
Functional pearl: http://www.cse.chalmers.se/~russo/publications_files/pearl-russo.pdf http://www.cse.chalmers.se/~russo/publications_files/pearl-r...
Slides: https://1drv.ms/p/s!Ahd2uwlk3jmIlCZr0spYc_I-OveR https://1drv.ms/p/s!Ahd2uwlk3jmIlCZr0spYc_I-OveR
Source: https://bitbucket.org/russo/mac-lib https://bitbucket.org/russo/mac-lib