I’m starting with Haskell in a RSA crypto project.
Digging in hackage I found two different packages to achieve my objective. The problem is that each package has its own version of the same type. (Same name and same fields)
To convert from one to other I’m doing: newKey=read (show key) :: Crypto.Types.PubKey.RSA.PrivateKey
Is there a better way to convert one type from on package to the equivalent in other package? Both types have the same name and same “fields”
New contributor
Albert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.