openid-0.1: An implementation of the OpenID-2.0 spec.Source codeContentsIndex
Network.OpenID.Utils
Portability
MaintainerStability :
Contents
General Helpers
OpenID Defaults
MonadLib helpers
Description
Synopsis
readMaybe :: Read a => String -> Maybe a
breaks :: (a -> Bool) -> [a] -> [[a]]
split :: (a -> Bool) -> [a] -> ([a], [a])
roll :: [Word8] -> Integer
unroll :: Integer -> [Word8]
btwoc :: [Word8] -> [Word8]
defaultModulus :: Integer
openidNS :: String
readM :: (ExceptionM m e, Read a) => e -> String -> m a
lookupParam :: ExceptionM m Error => String -> Params -> m String
readParam :: (Read a, ExceptionM m Error) => String -> Params -> m a
withResponse :: ExceptionM m Error => Either ConnError Response -> (Response -> m a) -> m a
General Helpers
readMaybe :: Read a => String -> Maybe aSource
Read, maybe.
breaks :: (a -> Bool) -> [a] -> [[a]]Source
Break up a string by a predicate.
split :: (a -> Bool) -> [a] -> ([a], [a])Source
Spit a list into a pair, removing the element that caused the predicate to succeed.
roll :: [Word8] -> IntegerSource
Build an Integer out of a big-endian list of bytes.
unroll :: Integer -> [Word8]Source
Turn an Integer into a big-endian list of bytes
btwoc :: [Word8] -> [Word8]Source
Pad out a list of bytes to represent a positive, big-endian list of bytes.
OpenID Defaults
defaultModulus :: IntegerSource
Default modulus for Diffie-Hellman key exchange.
openidNS :: StringSource
The OpenID-2.0 namespace.
MonadLib helpers
readM :: (ExceptionM m e, Read a) => e -> String -> m aSource
Read inside of an Exception monad
lookupParam :: ExceptionM m Error => String -> Params -> m StringSource
Lookup parameters inside an exception handling monad
readParam :: (Read a, ExceptionM m Error) => String -> Params -> m aSource
Read a field
withResponse :: ExceptionM m Error => Either ConnError Response -> (Response -> m a) -> m aSource
Make an HTTP request, and run a function with a successful response
Produced by Haddock version 2.4.1