Safe Haskell | None |
---|
liblastfm internals
You shouldn't need to import this module unless you are doing something interesting.
- newtype Request f a t = Request {}
- data Format
- data Auth
- data Ready
- data R f a t = R {}
- wrap :: (R f a t -> R f a t) -> Request f a t
- unwrap :: Request f a t -> R f a t -> R f a t
- class Coercing t where
- render :: R f a t -> String
- host :: Functor f => (Text -> f Text) -> R h a t -> f (R h a t)
- method :: Functor f => (ByteString -> f ByteString) -> R h a t -> f (R h a t)
- query :: Functor f => (Map Text Text -> f (Map Text Text)) -> R h a t -> f (R h a t)
Documentation
Authentication method
Indicates that request is ready for sending
ArtistAlbumOrMBID (MBID -> APIKey -> Ready) | |
ArtistAlbumOrMBID (Artist -> Album -> APIKey -> Ready) | |
ArtistTrackOrMBID (MBID -> APIKey -> Ready) | |
ArtistTrackOrMBID (Artist -> Track -> APIKey -> Ready) |
Lastfm API request data type
low-level representation
Coerce requests changing their phantom parameters. Used to ensure right flow of working with liblastfm. If you use it on your worn, then you will break abstraction
Lenses
method :: Functor f => (ByteString -> f ByteString) -> R h a t -> f (R h a t)Source
Request http _method lens