-
Notifications
You must be signed in to change notification settings - Fork 3
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
Problems building template Haskell #4
Comments
Seeing a similar problem (but I compiled ghcjs manually) on f703757:
|
Managed to fix mine; it is beacuse of https://github.com/boothead/oHm/blob/master/vendor/keymaster.js having references to the browser document object, which doesn't exist when ran through nodejs. Moving the types (and hence the TH magic for lenses) to a separate module fixed this. |
Thanks @jkozlowski - sorry I missed this update. @luite is this useful info for you? |
Yeah this is a general problem of how TH is run. The code has to work under the node.js environment, otherwise it breaks. We could perhaps add some workarounds, like preprocessor options that exclude code from being linked when running TH, or add some thin browser compatibility layer that would at least get rid of some undefined variable errors. Does anyone have any preference or suggestions here? |
With b874983 checked out:
The text was updated successfully, but these errors were encountered: