http-conduit and Persona

As of March 2020, School of Haskell has been switched to read-only mode.

import Network.HTTP.Conduit
import Control.Concurrent (threadDelay)
import Control.Monad.IO.Class

main = do
    req' <- parseUrl "https://verifier.login.persona.org/verify"
    let req = req' { checkStatus = \_ _ _ -> Nothing }
    withManager $ \man -> do
        httpLbs req man >>= liftIO . print
        httpLbs req man >>= liftIO . print
        httpLbs req man >>= liftIO . print

        liftIO $ threadDelay 10000000
        httpLbs req man >>= liftIO . print
        httpLbs req man >>= liftIO . print
comments powered by Disqus