Javascript Object Signing and Encryption (JOSE, jwcrypto) library in Haskell