Copyright | (c) Trevor Elliott 2008 |
---|---|
License | BSD3 |
Maintainer | Stability : |
Portability | |
Safe Haskell | None |
Language | Haskell98 |
- 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 String) -> (Response String -> m a) -> m a
General Helpers
split :: (a -> Bool) -> [a] -> ([a], [a]) Source #
Spit a list into a pair, removing the element that caused the predicate to succeed.
btwoc :: [Word8] -> [Word8] Source #
Pad out a list of bytes to represent a positive, big-endian list of bytes.
OpenID Defaults
defaultModulus :: Integer Source #
Default modulus for Diffie-Hellman key exchange.
MonadLib helpers
lookupParam :: ExceptionM m Error => String -> Params -> m String Source #
Lookup parameters inside an exception handling monad