Portability | |
---|---|
Maintainer | Stability : |
- 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 :: IntegerSource
Default modulus for Diffie-Hellman key exchange.
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
withResponse :: ExceptionM m Error => Either ConnError (Response String) -> (Response String -> m a) -> m aSource
Make an HTTP request, and run a function with a successful response