packages feed

liblastfm-0.0.3.4: src/Network/Lastfm/JSON/Radio.hs

{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Radio API module
{-# OPTIONS_HADDOCK prune #-}
module Network.Lastfm.JSON.Radio
  ( getPlaylist, search, tune
  ) where

#include "radio.docs"

import Network.Lastfm.Internal
import Network.Lastfm.JSON (jsonWrapper)
import qualified Network.Lastfm.API.Radio as API

$(jsonWrapper ["getPlaylist", "search", "tune"])

__getPlaylist__
getPlaylist ∷ Maybe Discovery
            → Maybe RTP
            → Maybe BuyLinks
            → Multiplier
            → Bitrate
            → APIKey
            → SessionKey
            → Secret
            → Lastfm Response

__search__
search ∷ Name → APIKey → Lastfm Response

__tune__
tune ∷ Maybe Language → Station → APIKey → SessionKey → Secret → Lastfm Response