<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="x_elementToProof ContentPasted0" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Francesco,</span>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br class="ContentPasted0">
</div>
<div class="x_elementToProof ContentPasted0" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Thanks.</div>
<div class="x_elementToProof ContentPasted0" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
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:</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br class="ContentPasted0">
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">$ stack build            
</span>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">WARNING: Ignoring uhask's bounds on jose (>=0.10); using jose-0.9.</span></div>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">Reason: allow-newer enabled.</span></div>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">uhask> build (lib + exe)</span></div>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">Preprocessing library for uhask-0.1.0.0..</span></div>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">Building library for uhask-0.1.0.0..</span></div>
<div class="x_ContentPasted0"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">[4 of 7] Compiling Modules.JWS</span></div>
<span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">..... <--- Errors about runJOSE not defined</span><br class="ContentPasted0">
</div>
<div></div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br class="ContentPasted0">
</div>
<div class="x_elementToProof x_ContentPasted1" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">$ stack install jose-0.10</span></div>
<div class="x_elementToProof x_ContentPasted1" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div class="x_ContentPasted1"><span style="font-family:Consolas,Courier,monospace" class="ContentPasted0">No latest package revision found for: jose, dependency callstack: []</span></div>
<div class="x_ContentPasted1"><br class="ContentPasted0">
</div>
<span class="x_ContentPasted1 ContentPasted0">Google and SO didn't help so far. Can you suggest something to resolve this? Thanks.</span></div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Beginners <beginners-bounces@haskell.org> on behalf of Francesco Ariis <fa-ml@ariis.it><br>
<b>Sent:</b> Sunday, February 26, 2023 11:55 AM<br>
<b>To:</b> beginners@haskell.org <beginners@haskell.org><br>
<b>Subject:</b> Re: [Haskell-beginners] Reproduce example in Crypto.JWT</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Ciao Pietro,<br>
<br>
Il 26 febbraio 2023 alle 09:26 Pietro Grandinetti ha scritto:<br>
> I am try to reproduce the first example here: <a href="https://hackage.haskell.org/package/jose-0.10/docs/Crypto-JWT.html">
https://hackage.haskell.org/package/jose-0.10/docs/Crypto-JWT.html</a><br>
> I can't seem to succeed with importing the function `runJOSE`<br>
> <br>
> ghci> import Crypto.JWT<br>
> ghci> :t runJOSE<br>
<br>
I `cabal get` jose-0.10, `cabal repl` and then<br>
<br>
    ë> import Crypto.JWT<br>
    ë> :t runJOSE<br>
    runJOSE :: JOSE e m a -> m (Either e a)<br>
<br>
I would check if you the latest jose, and what :browse Crypto.JWT says<br>
—F<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
Beginners@haskell.org<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</div>
</span></font></div>
</body>
</html>