[Haskell-beginners] Reproduce example in Crypto.JWT

Pietro Grandinetti pietro.gra at hotmail.it
Sun Feb 26 11:57:08 UTC 2023


Francesco,

Thanks.
I am using stack and the version doesn't match: `stack ls dependencies` shows `jose 0.9`. I can't seem to find a way to upgrade it even if I set `jose >= 0.10` in the package.yaml file:

$ stack build
WARNING: Ignoring uhask's bounds on jose (>=0.10); using jose-0.9.
Reason: allow-newer enabled.
uhask> build (lib + exe)
Preprocessing library for uhask-0.1.0.0..
Building library for uhask-0.1.0.0..
[4 of 7] Compiling Modules.JWS
..... <--- Errors about runJOSE not defined

$ stack install jose-0.10
No latest package revision found for: jose, dependency callstack: []

Google and SO didn't help so far. Can you suggest something to resolve this? Thanks.

________________________________
From: Beginners <beginners-bounces at haskell.org> on behalf of Francesco Ariis <fa-ml at ariis.it>
Sent: Sunday, February 26, 2023 11:55 AM
To: beginners at haskell.org <beginners at haskell.org>
Subject: Re: [Haskell-beginners] Reproduce example in Crypto.JWT

Ciao Pietro,

Il 26 febbraio 2023 alle 09:26 Pietro Grandinetti ha scritto:
> I am try to reproduce the first example here: https://hackage.haskell.org/package/jose-0.10/docs/Crypto-JWT.html
> I can't seem to succeed with importing the function `runJOSE`
>
> ghci> import Crypto.JWT
> ghci> :t runJOSE

I `cabal get` jose-0.10, `cabal repl` and then

    λ> import Crypto.JWT
    λ> :t runJOSE
    runJOSE :: JOSE e m a -> m (Either e a)

I would check if you the latest jose, and what :browse Crypto.JWT says
—F

_______________________________________________
Beginners mailing list
Beginners at haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20230226/7c0e473d/attachment.html>


More information about the Beginners mailing list