In general, I like this approach, but what are

   encrypt privateKey

or

   decrypt publicKey

supposed to do? A type-class solution also does not *prevent* programmers to perform such non-sensical calls

Would it be desirable to prohibit such calls using the type system?


--
Underestimating the novelty of the future is a time-honored tradition.
(D.G.)



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to