Giter Site home page Giter Site logo

Comments (6)

zmthy avatar zmthy commented on July 21, 2024

Okay. I think I might actually just make the argument a string and reuse readQ. I won't have time to get on top of this for at least two weeks but it should be a pretty simple addition.

from http-media.

zmthy avatar zmthy commented on July 21, 2024

Are you ever building quality values that don't have a quality of 1?

from http-media.

Zankoku-Okuno avatar Zankoku-Okuno commented on July 21, 2024

Re building non-1 quality values: I think it's possible. My current use-case can afford to be a toy, but I could easily see someone building a server that fills in a default accept header along the lines of text/html,*/*;q=0.9.

from http-media.

zmthy avatar zmthy commented on July 21, 2024

Okay, I've pushed to develop. I've exposed the maxQuality and minQuality functions, as well as a new quality function that uses readQ with a default error message. I've also prepped to bump the version to 1.0, let me know what you think and I'll finalise the release and publish to Hackage.

from http-media.

zmthy avatar zmthy commented on July 21, 2024

Totally forgot about this. Let me know if you have any thoughts, I'll push the release soon.

from http-media.

Zankoku-Okuno avatar Zankoku-Okuno commented on July 21, 2024

Well, you're not alone in forgetting :)

I think this kills the issue. I was going back-and-forth on whether an IsString instance would be good, but IsString a => IsString (Quality a) seems way too general to be a good idea.

I did have an unrelated idea before you publish, which I've put in #21 for organization purposes.

from http-media.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.