Code Monkey home page Code Monkey logo

Comments (8)

laurenceisla avatar laurenceisla commented on July 18, 2024 1

Hm, so the solution should be pinning a previous version of fuzzyset?

At first glance, it should. But IIRC, previous versions have conflicts with the current GHC version. Particularly the base and text dependencies, I think (I may be wrong).

from postgrest.

laurenceisla avatar laurenceisla commented on July 18, 2024 1

It's just the broken part that is certainly unrelated here.

Ah, I thought of it as evidence that something happened there. But cool, it isn't related to a broken library, then.

There is fuzzyset 0.3.2 available on hackage now, so maybe we first try updating the fuzzyset package

The most likely explanation though is, that I just broke it with the code changes about fuzzyset that I made.

Cool, will do both to check what's happening.

from postgrest.

laurenceisla avatar laurenceisla commented on July 18, 2024 1

Cool, will do both to check what's happening.

Tried to upgrade to 0.3.2, but the problem persisted. Then, after checking the library's code, I used the most similar function to Fuzzy.getOne, which is Fuzzy.closestMatch, but the error was still there. I also mixed some code between the old/new library versions to no avail.

It may be that the library itself has the leaks, not really sure. Regardless, I think the best course of action is to downgrade to 0.2.4, which is better than the version we had before because it's compatible with the other packages we have pinned in postgrest.cabal.

from postgrest.

steve-chavez avatar steve-chavez commented on July 18, 2024

Hm, so the solution should be pinning a previous version of fuzzyset?

from postgrest.

steve-chavez avatar steve-chavez commented on July 18, 2024

Seems related commercialhaskell/stackage#7341 (comment)

from postgrest.

wolfgangwalther avatar wolfgangwalther commented on July 18, 2024

The evidence is that it is marked as "broken" in the latest update of nixpkgs/GHC in commit 6682bae (previous commits do not throw the error even with -K1K):

I don't think this is related. broken just means it failed to build in nixpkgs at some point in the past. Nowadays it does build fine - thus I marked it unbroken in that PR.

But IIRC, previous versions have conflicts with the current GHC version.

Correct, we can't downgrade. But I don't see why we should here, I don't see a connection to fuzzyset here, yet.

from postgrest.

wolfgangwalther avatar wolfgangwalther commented on July 18, 2024

latest update of nixpkgs/GHC in commit 6682bae (previous commits do not throw the error even with -K1K):

Of course the only code changes in that are about fuzzyset, so that might very well be an indication that this is related. It's just the broken part that is certainly unrelated here. There is fuzzyset 0.3.2 available on hackage now, so maybe we first try updating the fuzzyset package to see whether that makes a difference.

from postgrest.

wolfgangwalther avatar wolfgangwalther commented on July 18, 2024

The most likely explanation though is, that I just broke it with the code changes about fuzzyset that I made. So it might be worth reviewing them carefully.

from postgrest.

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.