Comments (8)
More info:
compiler-check: match-exact
resolver: nightly-2016-04-17
compiler: ghcjs-0.2.0.820160417_ghc-7.10.3
setup-info:
ghcjs:
source:
ghcjs-0.2.0.820160417_ghc-7.10.3:
url: "https://tolysz.org/ghcjs/nightly-2016-04-17-820160417.tar.gz"
extra-deps:
- elerea-2.9.0
- ghcjs-dom-0.3.1.0
- ghcjs-dom-jsffi-0.3.1.0
packages:
- location: '.'
from ghcjs-dom.
yeah, i'm getting this too.
from ghcjs-dom.
Doesn't look like a stack issue. I can also reproduce in a cabal sandbox.
Seems something doesn't like reexported-modules
too much. It compiles fine with that section removed from .cabal
file.
from ghcjs-dom.
I can't reproduce this. Can someone please post output of cabal install -v --ghcjs ghcjs-dom
showing the failure (it works for me)?
cabal update
cabal sandbox init
cabal install -v --ghcjs ghcjs-dom
It might be a cabal 1.22 thing because I am using Cabal and cabal-install 1.24:
$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
from ghcjs-dom.
You are correct, it's cabal. I had:
% cabal --version
cabal-install version 1.22.6.0
using version 1.22.4.0 of the Cabal library
That resulted in (almost exactly like the stack output above):
[531 of 531] Compiling GHCJS.DOM ( src/GHCJS/DOM.hs, dist/dist-sandbox-b1eb0909/build/GHCJS/DOM.js_o )
In-place registering ghcjs-dom-jsffi-0.3.1.0...
Creating package registration file:
/tmp/pkgConf-ghcjs-dom-jsffi-0.3.116816927771714636915.0
cabal: Error: some packages failed to install:
ghcjs-dom-jsffi-0.3.1.0 failed during the final install step. The exception
was:
user error (Couldn't parse the output of 'setup register
--gen-pkg-config':FromString "unrecognised field or section:
\":GHCJS.DOM.JSFFI.Generated.ANGLEInstancedArrays,\"" (Just 537))
Installed:
% cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
And that works as expected.
from ghcjs-dom.
I'm confirming this is cabal as well.
With cabal 1.22:
Resolving dependencies...
Configuring ghcjs-dom-jsffi-0.3.1.0...
Failed to install ghcjs-dom-jsffi-0.3.1.0
Build log ( /home/codeworld/.cabal/logs/ghcjs-dom-jsffi-0.3.1.0.log ):
Configuring ghcjs-dom-jsffi-0.3.1.0...
setup-Simple-Cabal-1.22.8.0-x86_64-linux-ghcjs-0.2.0: dist/: does not exist
cabal: Error: some packages failed to install:
ghcjs-dom-jsffi-0.3.1.0 failed during the configure step. The exception was:
ExitFailure 1
I updated to the latest cabal on my distro, cabal-install 1.24.0 and this worked.
I suggest increasing the cabal version to 1.24
from ghcjs-dom.
I updated bundles for stack for the nightly and ghcjs80 (tested with node-6.5.0
):
resolver: nightly-2016-09-04
compiler: ghcjs-0.2.0.820160904_ghc-8.0.1
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.820160904_ghc-8.0.1:
url: "http://tolysz.org/ghcjs/ghc-8.0-2016-09-05-nightly-2016-09-04-820160904.tar.gz"
sha1: "cf4383b77f9d712133bdf54e6389c4361c57b484"
allow-newer: true
extra-deps:
- elerea-2.9.0
- ghcjs-dom-0.3.1.0
- ghcjs-dom-jsffi-0.3.1.0
packages:
- location: '.
for those still on lts
nb. repack includes newer cabal
Run process: /home/m/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghcjs-0.2.0.9006015_ghc-7.10.3
resolver: lts-6.15
compiler: ghcjs-0.2.0.9006015_ghc-7.10.3
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.9006015_ghc-7.10.3:
url: "https://tolysz.org/ghcjs/lts-6.15-9006015.tar.gz"
sha1: 4d513006622bf428a3c983ca927837e3d14ab687
Please test and close if it solves stack. Please consider creating some HowTo or readme describing your "success" story.
from ghcjs-dom.
might solve this particular problem, but the lts-6.15
version still doesn't work, at least on Windows, due to non-ASCII characters in yaml-0.8.18.4 (snoyberg/yaml#94). Changing resolver in this package to lts-6.18
(yaml-0.8.18.6, fixed) makes it work
from ghcjs-dom.
Related Issues (20)
- package qualified imports should use "ghcjs-dom-jsaddle" and not "jsaddle-dom" HOT 1
- Versions out of sync
- castTo HTMLInputElement/HTMLTextAreaElement failing HOT 4
- ghcjs-dom and OverloadedStrings interact very poorly due to ToJSString proliferation
- ghcjs-dom-jsffi JS exceptions can not be caught in Haskell HOT 7
- No way to reload page with forced GET
- DOMTokenList list operations
- Enhancement request: Provide SpeechRecognition APIs in ghcjs-dom-ffi HOT 2
- Should PopStateEvent.getState return a SerializedScriptValue?
- Fails under GHCJS 8.4.0.1 with "unknown package: ghcjs-base" HOT 5
- The type of `uncheckedCastTo` is different in JSaddle vs ghcjs-ffi
- ghcjs-dom-jsffi needs to be explicitly built before building library
- xhr request race condition readyState already 4 when it should be 1,2,3 .. HOT 1
- GHCJS.DOM.Document module conflicts with same in ghcjs-dom-jsffi as of 0.9.4.0
- PToJSVal / ToJSVal Discrepancies with jsaddle-dom
- Don't use fromJust
- IntersectionObserverInit appears to be missing
- Mixins are handled incorrectly
- ghcjs-dom 0.9.4 somehow causes websocket failure in CodeWorld HOT 2
- Error installing ghcjs-dom because out of memory caused by jsaddle-dom
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 ghcjs-dom.