If you haven't seen it already, check out Cryptol from Gallois: http://corp.galois.com/cryptol/
It's a crypto DSL that I believe is implemented in Haskell (it compiles to Haskell, C, C++ and a few others).
Re:The Heartbleed Bug
by shambulator on Thursday April 10, 2014 @11:12AM
(#7566830)
Particularly relevant example: TLS/SSL implementation in Haskell.
Most memory-related bugs are automatically eliminated, and security proofs are easier.