{-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} -- | Lastfm group API -- -- This module is intended to be imported qualified: -- -- @ -- import qualified Network.Lastfm.Group as Group -- @ module Network.Lastfm.Group ( getHype, getMembers, getWeeklyAlbumChart, getWeeklyArtistChart, getWeeklyChartList, getWeeklyTrackChart ) where import Network.Lastfm.Request -- | Get the hype list for a group -- -- getHype :: Request f (Group -> APIKey -> Ready) getHype = api "group.getHype" {-# INLINE getHype #-} -- | Get a list of members for this group. -- -- Optional: 'page', 'limit' -- -- getMembers :: Request f (Group -> APIKey -> Ready) getMembers = api "group.getMembers" {-# INLINE getMembers #-} -- | Get an album chart for a group, for a given date range. -- If no date range is supplied, it will return the most recent album chart for this group. -- -- Optional: 'from', 'to' -- -- getWeeklyAlbumChart :: Request f (Group -> APIKey -> Ready) getWeeklyAlbumChart = api "group.getWeeklyAlbumChart" {-# INLINE getWeeklyAlbumChart #-} -- | Get an artist chart for a group, for a given date range. -- If no date range is supplied, it will return the most recent album chart for this group. -- -- Optional: 'from', 'to' -- -- getWeeklyArtistChart :: Request f (Group -> APIKey -> Ready) getWeeklyArtistChart = api "group.getWeeklyArtistChart" {-# INLINE getWeeklyArtistChart #-} -- | Get a list of available charts for this group, expressed as -- date ranges which can be sent to the chart services. -- -- getWeeklyChartList :: Request f (Group -> APIKey -> Ready) getWeeklyChartList = api "group.getWeeklyChartList" {-# INLINE getWeeklyChartList #-} -- | Get a track chart for a group, for a given date range. -- If no date range is supplied, it will return the most recent album chart for this group. -- -- Optional: 'from', 'to' -- -- getWeeklyTrackChart :: Request f (Group -> APIKey -> Ready) getWeeklyTrackChart = api "group.getWeeklyTrackChart" {-# INLINE getWeeklyTrackChart #-}