Giter VIP home page Giter VIP logo

Comments (6)

vincenthz avatar vincenthz commented on July 30, 2024

I'ld rather see this as a pull request than as a comment. I'm OK in principle but got few comments:

  • the name should be GetExact (other better name can be suggested). my assumption when I see Get' is that it is some strict variant of Get.

  • no new imports needed in connection, specially Data.ByteString.Char8 is not needed (append exist in Data.ByteString)

  • I'ld rather see the recursion as an inner loop than a toplevel loop, which would factor the conn:

    connectionGetExact conn = loop
    where loop x | x == 0 = return ..
    | otherwise = do
    ...
    loop

from hs-connection.

AlainODea avatar AlainODea commented on July 30, 2024

Thank you. I'll incorporate your recommendations and submit a Pull request in the next few days.

from hs-connection.

dagit avatar dagit commented on July 30, 2024

I just ran into a problem using connectionGet and found this issue. The proposed solution works perfectly for me. Are you still planning to add connectionGetExact to the library? As a temporary solution I added connectionGetExact to my project, but it seems like a nice function to have in the official API.

from hs-connection.

vincenthz avatar vincenthz commented on July 30, 2024

sorry about the crappy delay. This shoudn't have take that long, I just didn't see it.

from hs-connection.

AlainODea avatar AlainODea commented on July 30, 2024

@vincenthz this and the family of crypto libraries around it are essential. Creating and maintaining them is a huge service to me and to the rest of the Haskell community. Thank you 👍

from hs-connection.

dagit avatar dagit commented on July 30, 2024

I second that. Thanks!

from hs-connection.

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.