Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Reproduce example in Crypto.JWT (Pietro Grandinetti)
2. Re: Reproduce example in Crypto.JWT (Francesco Ariis)
3. Re: Reproduce example in Crypto.JWT (Pietro Grandinetti)
4. Re: Reproduce example in Crypto.JWT (Francesco Ariis)
----------------------------------------------------------------------
Message: 1
Date: Sun, 26 Feb 2023 09:26:23 +0000
From: Pietro Grandinetti <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] Reproduce example in Crypto.JWT
Message-ID:
<db9p191mb15147daff5abb3ce23ecdb68fc...@db9p191mb1514.eurp191.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
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
<interactive>:1:1: error: Variable not in scope: runJOSE
ghci> import Crypto.JOSE.Error
--https://github.com/frasertweedale/hs-jose/blob/master/src/Crypto/JOSE/Error.hs
ghci> :t runJOSE
<interactive>:1:1: error: Variable not in scope: runJOSE
Can you point out what I am missing? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20230226/7a92e7f5/attachment-0001.html>
------------------------------
Message: 2
Date: Sun, 26 Feb 2023 11:55:39 +0100
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Reproduce example in Crypto.JWT
Message-ID: <Y/[email protected]>
Content-Type: text/plain; charset=utf-8
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
------------------------------
Message: 3
Date: Sun, 26 Feb 2023 11:57:08 +0000
From: Pietro Grandinetti <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Reproduce example in Crypto.JWT
Message-ID:
<db9p191mb15142f1b8e0b64943537e9bffc...@db9p191mb1514.eurp191.prod.outlook.com>
Content-Type: text/plain; charset="cp1253"
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 <[email protected]> on behalf of Francesco Ariis
<[email protected]>
Sent: Sunday, February 26, 2023 11:55 AM
To: [email protected] <[email protected]>
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
[email protected]
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-0001.html>
------------------------------
Message: 4
Date: Sun, 26 Feb 2023 13:05:41 +0100
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Reproduce example in Crypto.JWT
Message-ID: <Y/tLFSCr7/[email protected]>
Content-Type: text/plain; charset=utf-8
Il 26 febbraio 2023 alle 11:57 Pietro Grandinetti ha scritto:
> 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:
This is `jose` in stackage:
https://www.stackage.org/lts-20.12/package/jose-0.9
So switching to Nightly will do
—F
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 169, Issue 6
*****************************************