Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No instance for (ToJSVal Value) #62

Open
mightybyte opened this issue May 9, 2018 · 1 comment
Open

No instance for (ToJSVal Value) #62

mightybyte opened this issue May 9, 2018 · 1 comment

Comments

@mightybyte
Copy link

I recently encountered this error while building jsaddle-0.9.4.0:

[12 of 16] Compiling Language.Javascript.JSaddle.Value ( src/Language/Javascript/JSaddle/Value.hs, dist/build/Language/Javascript/JSaddle/Value.js_o )

src/Language/Javascript/JSaddle/Value.hs:567:15-21: error:
    • No instance for (ToJSVal Value) arising from a use of ‘toJSVal’
    • In the expression: toJSVal
      In an equation for ‘valMakeJSON’: valMakeJSON = toJSVal

Anyone come across this?

@hamishmack
Copy link
Member

Where is this instance? It depends.

Compiling with GHC : jsaddle
Compiling with GHCJS (not reflex platform) : ghcjs-base
Compiling with GHCJS (using reflex platform) : patch for aeson

When using the reflex platform, make sure there is no constraint preventing cabal from using the patched patched version of aeson from your ghcjs-pkg list. If it cannot use that version it will download and build aeson from hackage (without the patch needed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants