liblastfm-0.0.3.1: Wrapper to Lastfm API

Safe HaskellNone

Network.Lastfm

Description

Response module

Synopsis

Documentation

type Lastfm a = IO (Either LastfmError a)Source

Type synonym for Lastfm response or error.

type Response = ByteStringSource

Type synonym for Lastfm response

data ResponseType Source

Desired type of Lastfm response

Constructors

XML 
JSON 

callAPI :: ResponseType -> [(String, String)] -> Lastfm ResponseSource

Low level function. Sends POST query to Lastfm API.

callAPIsigned :: ResponseType -> Secret -> [(String, String)] -> Lastfm ResponseSource

Low level function. Sends signed POST query to Lastfm API.

xml :: [String] -> Q [Dec]Source

newtype Secret Source

Constructors

Secret String 

newtype Album Source

Constructors

Album String 

Instances

newtype AlbumArtist Source

Constructors

AlbumArtist String 

newtype APIKey Source

Constructors

APIKey String 

Instances

newtype Artist Source

Constructors

Artist String 

Instances

newtype AuthToken Source

Constructors

AuthToken String 

Instances

newtype Context Source

Constructors

Context String 

Instances

newtype Country Source

Constructors

Country String 

Instances

newtype Description Source

Constructors

Description String 

newtype Group Source

Constructors

Group String 

Instances

newtype Language Source

Constructors

Language String 

Instances

newtype Latitude Source

Constructors

Latitude String 

Instances

newtype Location Source

Constructors

Location String 

Instances

newtype Longitude Source

Constructors

Longitude String 

Instances

newtype Mbid Source

Constructors

Mbid String 

Instances

newtype Message Source

Constructors

Message String 

Instances

newtype Method Source

Constructors

Method String 

Instances

newtype Metro Source

Constructors

Metro String 

Instances

newtype Name Source

Constructors

Name String 

Instances

newtype Recipient Source

Constructors

Recipient String 

Instances

newtype Station Source

Constructors

Station String 

Instances

newtype StreamId Source

Constructors

StreamId String 

Instances

newtype Tag Source

Constructors

Tag String 

Instances

newtype TaggingType Source

Constructors

TaggingType String 

newtype Title Source

Constructors

Title String 

Instances

newtype Token Source

Constructors

Token String 

newtype Track Source

Constructors

Track String 

Instances

newtype User Source

Constructors

User String 

Instances

newtype Username Source

Constructors

Username String 

Instances

newtype Venuename Source

Constructors

Venuename String 

Instances

newtype Autocorrect Source

Constructors

Autocorrect Bool 

newtype BuyLinks Source

Constructors

BuyLinks Bool 

newtype Discovery Source

Constructors

Discovery Bool 

Instances

newtype Public Source

Constructors

Public Bool 

Instances

newtype RecentTracks Source

Constructors

RecentTracks Bool 

newtype RTP Source

Constructors

RTP Bool 

Instances

newtype UseRecs Source

Constructors

UseRecs Bool 

Instances

newtype Distance Source

Constructors

Distance Int 

Instances

newtype Duration Source

Constructors

Duration Int 

Instances

newtype Event Source

Constructors

Event Int 

Instances

newtype Limit Source

Constructors

Limit Int 

Instances

newtype Page Source

Constructors

Page Int 

Instances

newtype Playlist Source

Constructors

Playlist Int 

Instances

newtype TrackNumber Source

Constructors

TrackNumber Int 

newtype Venue Source

Constructors

Venue Int 

Instances

newtype End Source

Constructors

End Integer 

Instances

newtype Fingerprint Source

Constructors

Fingerprint Integer 

newtype From Source

Constructors

From Integer 

Instances

newtype Start Source

Constructors

Start Integer 

Instances

newtype Timestamp Source

Constructors

Timestamp Integer 

Instances

newtype To Source

Constructors

To Integer 

Instances

data Bitrate Source

Constructors

B64 
B128 

Instances

data Multiplier Source

Constructors

M1 
M2 

Instances

data Order Source

Constructors

Popularity 
DateAdded 

Instances

data Status Source

Constructors

Yes 
Maybe 
No 

Instances

data Period Source

Constructors

Week 
Quater 
HalfYear 
Year 
Overall 

Instances

simple :: (FromJSON a, Monad m) => m ByteString -> m aSource