carpe/elm-data/4.0.0

NOTE: the latest version is 4.0.5

Rerouted (archive, verified). The original repository is gone. This copy comes from an archive (Software Heritage). The Lamdera package server serves a copy recovered from swh:1:rev:37d0296149734e990d6a3e02e040acfcbed46f30 (Software Heritage, origin https://github.com/carpe/elm-data).

What we checked: Software Heritage archived tag 4.0.0 of github.com/carpe/elm-data at commit 37d029614973; its commit 37d029614973 is from 2020-03-01 00:03 UTC, before the version was published (2020-03-01 00:04 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, made from Software Heritage's copy of the files Elm uses, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/carpe/elm-data/zipball/4.0.0/

ElmData.QueryParam

Use to pass query params to a request made via a Resource or ListResource.

string : String -> String -> QueryParam

Create String QueryParam

int : String -> Int -> QueryParam

Create Int QueryParam

float : String -> Float -> QueryParam

Create Float QueryParam

bool : String -> Bool -> QueryParam

Create Bool QueryParam

Actual QueryParam type

type alias QueryParam =
{ key : String
, value : String
}

A QueryParam

Create url from QueryParams

createUrl : String -> List QueryParam -> String

Create url from QueryParams