Giter Club home page Giter Club logo

Comments (7)

HeinrichApfelmus avatar HeinrichApfelmus commented on September 26, 2024

That's weird. The message indicates that the hyper-haskell-server executable can run, so the hyper package should be installed as well (it's a dependency).

EDIT: Added link to and quoted the blog post on stack

It may be a visibility issue. Which version of stack are you using? In a recent blog post, titled "Conflicting module names", it was mentioned that packages may be hidden by default in newer versions of the stackage database:

We now have the ability to list some packages as hidden in a Stackage snapshot. This means that, after installing the package, the Stackage build system will hide the package, so that its modules won't be available for import.

I don't know how this is relevant to your issue or not.

Can you go to the directory where the stack.yaml file that you have pointed HyperHaskell to resides, and execute the command

stack exec ghc-pkg list

?

from hyper-haskell.

sebeaumont avatar sebeaumont commented on September 26, 2024

hmm -- this is stack: Version 1.3.2 x86_64 hpack-0.15.0
and right enough the visible packages are just my project ones... I'll dig around a bit and see if the packages are really there.

from hyper-haskell.

sebeaumont avatar sebeaumont commented on September 26, 2024

I don't really understand what stack is up to -- seems to install stuff in various places I might have a clear out (I thought stack was supposed to fix all this nonsense) can Hyper be installed in a cabal sandbox?

from hyper-haskell.

HeinrichApfelmus avatar HeinrichApfelmus commented on September 26, 2024

No idea either. Using Hyper from a cabal sandbox is currently not implemented, only vanilla cabal for now. But I'm happy to accept patches, it's mainly a matter of figuring out the right paths.

from hyper-haskell.

sebeaumont avatar sebeaumont commented on September 26, 2024

I can take a look. I guess we can figure out which ghc version the server was built with and then constrain it to look for appropriate packages within given paths.

from hyper-haskell.

sebeaumont avatar sebeaumont commented on September 26, 2024

I built the Haskell backend etc. from master using the following:

seb@psi:hyper-haskell 1347> ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1.20161213

seb@psi:hyper-haskell 1341> stack --stack-yaml=haskell/stack.yaml --resolver=lts-7.14 --system-ghc build

And can thus run it as:

seb@psi:hyper-haskell 1345> stack --stack-yaml=haskell/stack.yaml --resolver=lts-7.14 --system-ghc exec hyper-haskell-server
Setting phasers to stun... (port 8024) (ctrl-c to quit) Waiting for Haskell expression

I'm using the os-x binary front end which still doesn't seem to work with this server -- will I have to rebuild that? How does the front end start/communicate with server? Can it be configured to use the stack command as above? I think the original error might be spurious...

BTW ^c does not quit the server as advertised. As a general question do you know if can stack.yaml be configured to use different resolvers depending on the ghc in use?

from hyper-haskell.

sebeaumont avatar sebeaumont commented on September 26, 2024

Ah I see that the stack command is hardwired in interpreter.js... explains why this could never have worked with ghc-8.0.1 we need to be able to configure the entire command or have stack.yaml do the right thing... or indeed cabal sandboxes

from hyper-haskell.

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.