Skip to content

Safer Spotify API query DSL #3

@elldritch

Description

@elldritch

In general, I'm pretty unsatisfied with our ability to construct URLs. This seems to be somewhere that Haskell shockingly lags behind Go in type-safety - I haven't found an equivalent of path.Join or any useful data structures for representing URLs beyond careful string concatenation.

For an example of where this makes for a dangerous API, see:

https://github.com/liftM/hipsterfy/blob/2af2a3c939b4f29aac0cdb8adca513d7300b5c21/src/Hipsterfy/Spotify/API.hs#L44-L55

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions