liblastfm- Wrapper to Lastfm API

Safe HaskellNone



Response module



type Lastfm a = IO (Either LastfmError a)Source

Type synonym for Lastfm response or error.

type Response = StringSource

Type synonym for Lastfm response

dispatch :: IO a -> Lastfm aSource

Low level function. Captures all exceptions and transform them into Either Error type.

withSecret :: Secret -> IO a -> IO aSource

All authentication requiring functions should be wrapped into withSecret

callAPI :: Method -> [(Key, Value)] -> IO ResponseSource

Low level function. Sends POST query to Lastfm API.