Giter Site home page Giter Site logo

spock-ghcjs-sample's Introduction

spock-ghcjs-sample's People

Contributors

tolysz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spock-ghcjs-sample's Issues

[Qestion / Offtopic] Editor support of GHCJS to work w/ spock-ghcjs-sample

Marcin, first of all thanks for this great example to run Spock with GHCJS 0.7.10.x and 8.0.x Also big kudos for your work of patching GHCJS in regular basis to build it with Stack!

May I ask you what Editor do you use to write spock-ghcjs-sample? I'm an Emacs user, but not able to run GHCJS properly with Emacs (Prelude + haskell-mode). I tried almost everything to have Error handling, autocompletion etc. w/ GHCJS but without any success. Any other Haskell project without GHCJS runs fine with Emacs, so the hard stuff seems to be GHJS.

Any hint?

Thanks!
-Jens

GHC8 version fails

Opening https://spock8.kio.sx/index.html gives

uncaught exception in Haskell main thread: ReferenceError: h$_js_decode_string is not defined
rts.js:7069 ReferenceError: h$_js_decode_string is not defined
    at h$$afb (out.js:37379)
    at h$runThreadSlice (rts.js:8012)
    at h$runThreadSliceCatch (rts.js:7968)
    at h$mainLoop (rts.js:7963)
    at rts.js:8506
    at XMLHttpRequest.<anonymous> (lib.js:3639)

in Google Chrome

SHA1 for ghcjs-0.2.1?

Hi, thank you for providing a patched version of GHCJS for stack! I tried fetching the tarball and ran into a hash mismatch:

$ stack --stack-yaml=stack-frontend.yaml setup
...
ghcjs-0.2.1.9007001_ghc-8.0.1:   11.27 MiB downloaded...Download expectation failure: content hash (SHA1)
Expected: e640724883238593e2d2f7f03991cb413ec0347b (ByteString)
Actual:   "838d58502bdaff55d38627e371eba5ebf9ab5923"

Locally, I seem to observe the same mismatch that stack reports:

$ curl -O http://tolysz.org/ghcjs/untested/ghc-8.0-2016-09-26-lts-7.1-9007001-mem.tar.gz
$ openssl sha1 ghc-8.0-2016-09-26-lts-7.1-9007001-mem.tar.gz 
SHA1(ghc-8.0-2016-09-26-lts-7.1-9007001-mem.tar.gz)= 838d58502bdaff55d38627e371eba5ebf9ab5923

Suggestions? Thanks again!

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.