Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Cell evaluation fails when done too early after opening HOT 2
- Installation/running on linux HOT 3
- Automated HTML rendering of notebooks HOT 2
- MacOS: "Error: 1" using stack back-end HOT 2
- Does HyperHaskell work with Plotly? HOT 1
- reference to 'acceptNewSock' undefined HOT 1
- Support qualified imports with module aliases
- Use annotated Haskell modules as notebook format HOT 1
- instances Display List, Tuples ... HOT 5
- Hyper.html should take a Blaze.Html type as input
- Hyper.Graphics should be an alias for a Blaze.Html type HOT 1
- Ctrl-Return in "Module Imports" should reload imports
- Configuration of font size HOT 1
- Embedded GHC interpreter cannot find any modules or symbols HOT 2
- Paths on Mac? HOT 8
- Scaling (via diagrams) doesn't work
- Too strict version bounds on QuickCheck for hyper-extra HOT 1
- Upgrade electron beyond 11
- hyper-haskell-server.nix out of date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper-haskell.