Coder Social home page Coder Social logo

Comments (7)

mitchmindtree avatar mitchmindtree commented on May 29, 2024

After a quick look I'm not too sure off the top of my head 🤔

Curiously, while nix build .#tidal-listener fails, doing nix develop and then cd tidal-listener && cabal run appears to work without issue. This does indicate there's some kind of impurity in the non-nix cabal build approach that we're not capturing in the tidal-listener flake package output.

Could you elaborate on the need for --dymanic you mentioned? Does cabal try to link to a system dynamic libs while building tidal-listener or something?

from tidal.

mitchmindtree avatar mitchmindtree commented on May 29, 2024

I kept your --dynamic hint in mind and had a look at tidal-listener.cabal file.

It looks like commenting out these ghc-options: -dynamic-too lines in the tidal-listener.cabal file allows nix build .#tidal-listener to work without issue.

if !os(windows)
ghc-options: -dynamic-too

The reason it was added appears to be something to do with haskell-lint? This issue is linked above:

haskell-hint/hint#156

@polymorphicengine it looks like that issue has since been closed, but I'm unfamiliar with haskell-hint - are we able to remove the -dynamic-too ghc option? If so that would make this an easy fix 😄

from tidal.

polymorphicengine avatar polymorphicengine commented on May 29, 2024

i'm not completely sure, but i think the dynamic flag should be enough, i only found this fix through experimenting and it might well be that i added the dynamic-too flag without good reason..
it is very hard to verify though, since a successful build will not mean it working automatically...
someone with nix would have to try it out for us

from tidal.

mitchmindtree avatar mitchmindtree commented on May 29, 2024

I can confirm that removing the -dynamic-too ghc option makes it possible to build and run tidal-listener successfully with Nix (on linux at least). Or were you referring to checking that haskell-hint continues to work?

from tidal.

polymorphicengine avatar polymorphicengine commented on May 29, 2024

yes, not sure if hint will still work,..
on that note i'm not sure if any of the builds actually would work with the dynamic flag,
i think we are at a state where if someone wants to use tidal-listener they have to compile themselves anyways (using the dynamic flag)

this whole issue is unfortunately very confusing and i'm pretty much at the end of my wits (see the now closed immense issue on the hint github)

from tidal.

mindofmatthew avatar mindofmatthew commented on May 29, 2024

We already disable Nix tidal-listener builds for unstable 2.0 Tidal. Should we also disable them for 1.9 and leave it at that?

(For what it's worth, I've been learning how to implement new programming languages partially in order to avoid learning how hint works 🙂)

from tidal.

polymorphicengine avatar polymorphicengine commented on May 29, 2024

(For what it's worth, I've been learning how to implement new programming languages partially in order to avoid learning how hint works 🙂)

nice! not to discourage, but writing our own interpreter would be quite an immense effort (unless we introduce some big restrictions, like in estuary tidal where every function basically becomes a keyword)

anyways, if you like to talk about it sometime hit me up :)

from tidal.

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.