liblastfm-0.0.1.0: Wrapper to Lastfm API

Safe HaskellNone

Network.Lastfm.Response

Description

Response module

Synopsis

Documentation

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.