{"action":"created","issue":{"url":"https://api.github.com/repos/joelburget/react-haskell/issues/19","labels_url":"https://api.github.com/repos/joelburget/react-haskell/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/joelburget/react-haskell/issues/19/comments","events_url":"https://api.github.com/repos/joelburget/react-haskell/issues/19/events","html_url":"https://github.com/joelburget/react-haskell/pull/19","id":57003261,"number":19,"title":"Nix all the things","user":{"login":"boothead","id":87764,"avatar_url":"https://avatars.githubusercontent.com/u/87764?v=3","gravatar_id":"","url":"https://api.github.com/users/boothead","html_url":"https://github.com/boothead","followers_url":"https://api.github.com/users/boothead/followers","following_url":"https://api.github.com/users/boothead/following{/other_user}","gists_url":"https://api.github.com/users/boothead/gists{/gist_id}","starred_url":"https://api.github.com/users/boothead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boothead/subscriptions","organizations_url":"https://api.github.com/users/boothead/orgs","repos_url":"https://api.github.com/users/boothead/repos","events_url":"https://api.github.com/users/boothead/events{/privacy}","received_events_url":"https://api.github.com/users/boothead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T08:50:38Z","updated_at":"2015-02-11T09:13:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joelburget/react-haskell/pulls/19","html_url":"https://github.com/joelburget/react-haskell/pull/19","diff_url":"https://github.com/joelburget/react-haskell/pull/19.diff","patch_url":"https://github.com/joelburget/react-haskell/pull/19.patch"},"body":"I've replaced haste with ghcjs specfic stuff in .cabal and added a shell.nix and a default.nix.\r\n\r\nIf you have a checkout of nixpkgs you should be able to run:\r\n\r\n```\r\n⇒  nix-shell -I . --pure # I have a symlink to my checkout of nixpkgs in cwd                           \r\n\r\n[nix-shell:~/dev/ghcjs/react-haskell]$ cabal configure --ghcjs\r\nWarning: The package list for 'hackage.haskell.org' is 247.0 days old.\r\nRun 'cabal update' to get the latest list of available packages.\r\nResolving dependencies...\r\nConfiguring react-haskell-1.3.0.0...\r\n\r\n[nix-shell:~/dev/ghcjs/react-haskell]$ cabal build\r\nBuilding react-haskell-1.3.0.0...\r\nPreprocessing library react-haskell-1.3.0.0...\r\n\r\nsrc/React/Anim.hs:9:8:\r\n    Could not find module ‘Haste’\r\n    Use -v to see a list of the files searched for.\r\n\r\nsrc/React/Attrs.hs:6:8:\r\n    Could not find module ‘Haste.JSON’\r\n    Use -v to see a list of the files searched for.\r\n\r\nsrc/React/Attrs.hs:7:8:\r\n    Could not find module ‘Haste.Prim’\r\n    Use -v to see a list of the files searched for.\r\n\r\nsrc/React/Imports.hs:12:8:\r\n    Could not find module ‘Haste.Foreign’\r\n    Use -v to see a list of the files searched for.\r\n\r\nsrc/React/Interpret.hs:6:8:\r\n    Could not find module ‘Haste.DOM’\r\n    Use -v to see a list of the files searched for.\r\n```\r\n\r\nSo this seems to drop you into a sane nix-shell sans all the implementation changes you'd have to make to use ghcjs instead of haste :-)"},"comment":{"url":"https://api.github.com/repos/joelburget/react-haskell/issues/comments/73851815","html_url":"https://github.com/joelburget/react-haskell/pull/19#issuecomment-73851815","issue_url":"https://api.github.com/repos/joelburget/react-haskell/issues/19","id":73851815,"user":{"login":"boothead","id":87764,"avatar_url":"https://avatars.githubusercontent.com/u/87764?v=3","gravatar_id":"","url":"https://api.github.com/users/boothead","html_url":"https://github.com/boothead","followers_url":"https://api.github.com/users/boothead/followers","following_url":"https://api.github.com/users/boothead/following{/other_user}","gists_url":"https://api.github.com/users/boothead/gists{/gist_id}","starred_url":"https://api.github.com/users/boothead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boothead/subscriptions","organizations_url":"https://api.github.com/users/boothead/orgs","repos_url":"https://api.github.com/users/boothead/repos","events_url":"https://api.github.com/users/boothead/events{/privacy}","received_events_url":"https://api.github.com/users/boothead/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T09:13:27Z","updated_at":"2015-02-11T09:13:27Z","body":"Sure thing. Leaving out the cabal changes could probably be made to work\nfor haste too, so give me a shout if you want to explore nix without ghcjs.\n:-)\nOn 10 Feb 2015 21:58, \"Joel Burget\" <notifications@github.com> wrote:\n\n> Thanks :) Going to leave this open for now, until I get a chance to look\n> at the GHCJS stuff.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/joelburget/react-haskell/pull/19#issuecomment-73792956>\n> .\n>\n"}}