Meta tags:
Headings (most frequently used words):
liblastfm, flags, lastfm, api, interface, modules, downloads, readme, for, introduction, installation, usage, faq, note, on, testing, manual, maintainer, corner,
Text of the page (most frequently used words):
#lastfm (29), liblastfm (14), for (13), api (12), the (11), tag (11), and (9), package (8), use (7), you (6), request (6), search (6), xml (5), json (5), artist (5), git (5), interface (5), cabal (4), hackage (4), your (4), test (4), response (4), fix (4), apikey (4), 29effec263316a1f8a97f753caaa83e0 (4), either (4), com (4), flag (4), authentication (3), export (3), this (3), error (3), add (3), interactive (3), print (3), how (3), type (3), text (3), import (3), name (3), clone (3), github (3), supki (3), install (3), http (3), last (3), description (3), network (3), matvey (3), aksenov (3), documentation (2), examples (2), get (2), example (2), haskell_liblastfm_apikey (2), haskell_liblastfm_sessionkey (2), haskell_liblastfm_secret (2), need (2), set (2), key (2), session (2), that (2), format (2), getinfo (2), pink (2), floyd (2), instance (2), show (2), lastfmerror (2), first (2), ghci (2), getting (2), following (2), with (2), xoverloadedstrings (2), overloadedstrings (2), enable (2), internal (2), con (2), russian (2), folk (2), limit (2), object (2), fromlist (2), send (2), applicative (2), method (2), would (2), modules (2), queries (2), conduit (2), aeson (2), back (2), provides (2), all (2), available (2), readme (2), 2018 (2), log (2), rating (2), downloads (2), details (2), dependencies (2), https (2), source (2), apis (2), dmitrymalikov (2), maintainer (2), mit (2), client (2), info (2), maintainers (2), browse (2), flags (2), user (2), library (2), produced, please, consult, don, know, where, credentials, __api_key__, __session_key__, __secret__, compatibility, suite, specifically, requiring, will, environment, variables, secret, respectively, bash, note, testing, message, indicates, ghc, cannot, infer, helpers, depending, needs, arising, from, possible, declaration, argument, namely, stmt, command, compile, switch, top, file, language, while, means, haven, extension, enabled, one, works, couldn, match, expected, data, lazy, actual, char, faq, describes, parse, responses, wiki, newconnection, right, results, tagmatches, constructed, now, may, required, optional, parameters, construct, desired, bunch, useful, utilities, qualified, suppose, find, module, function, couple, here, usage, installation, document, value, once, ready, can, might, miscellaneous, stuff, like, choosing, correct, etc, url, encoding, signing, constructing, requests, also, handles, machinery, needed, prepare, sending, introduction, haddocks, original, reference, complete, service, two, flavours, docs, success, reported, reports, build, status, votes, yet, estimated, bayesian, average, 20102, total, days, direct, indirect, reverse, distributions, head, repo, category, 07t19, 58z, uploaded, gmail, dmitry, malikov, author, license, transformers, semigroups, profunctors, uri, tls, cryptonite, containers, cereal, bytestring, base, changelog, markdown, change, versions, rss, candidates, edit, information, trustees, matveyaksenov, corner, included, tar, more, disable, disabled, real, default, manual, venue, track, tasteometer, radio, playlist, group, geo, event, chart, album, quick, jump, index, skip, rest, supports, formats, report, vulnerability, propose, tags, accounts, upload, what, new,
Text of the page (random words):
liblastfm lastfm api interface hackage package search browse what s new upload user accounts liblastfm lastfm api interface library mit network apis propose tags report a vulnerability provides interface to lastfm rest api supports xml and json formats skip to readme modules index quick jump lastfm lastfm album lastfm artist lastfm authentication lastfm chart lastfm event lastfm geo lastfm group lastfm internal lastfm library lastfm playlist lastfm radio lastfm request lastfm response lastfm tag lastfm tasteometer lastfm track lastfm user lastfm venue flags manual flags name description default test api a real api test disabled use f flag to enable a flag or f flag to disable that flag more info downloads liblastfm 0 7 0 tar gz browse cabal source package package description as included in the package maintainer s corner package maintainers dmitrymalikov matveyaksenov for package maintainers and hackage trustees edit package information candidates 0 3 2 0 0 4 0 0 versions rss 0 0 1 0 0 0 2 1 0 0 2 2 0 0 3 0 0 0 3 1 0 0 3 2 0 0 3 3 0 0 3 4 0 0 3 5 0 0 3 6 0 0 3 7 0 0 3 8 0 1 0 0 0 1 1 0 0 1 1 1 0 1 1 2 0 2 0 0 0 3 0 0 0 3 2 0 0 4 0 0 0 4 1 0 0 5 0 0 5 1 0 6 0 0 6 1 0 7 0 info change log changelog markdown dependencies aeson base 4 5 bytestring cereal containers 0 5 cryptonite 0 7 http client 0 5 http client tls 0 2 network uri profunctors semigroups text transformers xml conduit 1 1 details license mit author matvey aksenov dmitry malikov maintainer matvey aksenov matvey aksenov gmail com uploaded by dmitrymalikov at 2018 08 07t19 59 58z category network apis source repo head git clone https github com supki liblastfm this git clone https github com supki liblastfm tag 0 7 0 distributions reverse dependencies 1 direct 0 indirect details downloads 20102 total 85 in the last 30 days rating no votes yet estimated by bayesian average your rating λ λ λ status docs available build log last success reported on 2018 08 07 all 1 reports readme for liblastfm 0 7 0 back to package description liblastfm complete api interface to last fm service documentation is available in two flavours original api reference liblastfm haddocks introduction liblastfm provides applicative interface for constructing requests also it handles all machinery needed to prepare request for sending signing url encoding miscellaneous stuff like choosing correct http method etc once request is ready liblastfm can send it and get you back a response response format might be aeson value for json queries xml conduit document for xml queries installation to install either use hackage cabal install liblastfm or git git clone git github com supki liblastfm cd liblastfm cabal install usage suppose you need to use tag search api method first find it in liblastfm tag would be the name of the module and search would be the name of function here it is so import a couple of modules import lastfm a bunch of useful utilities import qualified lastfm tag as tag for tag search now you may use applicative for required and or for optional parameters to construct desired request tag search tag russian folk limit 3 apikey 29effec263316a1f8a97f753caaa83e0 json to send constructed request use lastfm con newconnection lastfm con tag search tag russian folk limit 10 apikey 29effec263316a1f8a97f753caaa83e0 json right object fromlist results object fromlist tagmatches wiki describes how to parse responses faq q i m getting the following error how do i fix it artist getinfo artist pink floyd apikey 29effec263316a1f8a97f753caaa83e0 interactive 8 27 couldn t match expected type data text lazy internal text with actual type char a this means you haven t overloadedstrings extension enabled to enable it either one works type in set xoverloadedstrings while in ghci session add language overloadedstrings to the top of the file compile with xoverloadedstrings switch q i m getting the following error how do i fix it lastfm artist getinfo artist pink floyd apikey 29effec263316a1f8a97f753caaa83e0 interactive 13 1 no instance for show io either lastfmerror r0 arising from a use of print possible fix add an instance declaration for show io either lastfmerror r0 in the first argument of print namely it in a stmt of an interactive ghci command print it a this error message indicates that ghc cannot infer response format for the request to fix it add use json or xml helpers depending on your needs a note on testing to test lastfm api compatibility api test suite specifically authentication requiring examples you will need to set haskell_liblastfm_apikey haskell_liblastfm_sessionkey and haskell_liblastfm_secret environment variables to your api key session key and secret respectively for example bash export haskell_liblastfm_apikey __api_key__ export haskell_liblastfm_sessionkey __session_key__ export haskell_liblastfm_secret __secret__ please consult lastfm api documentation and example authentication hs examples if you don t know where to get your credentials produced by hackage and cabal 3 16 1 0
|