{"id":30615607,"url":"https://github.com/torahappy/ghcjs-devenv","last_synced_at":"2026-04-11T05:35:14.349Z","repository":{"id":264998385,"uuid":"894836147","full_name":"torahappy/ghcjs-devenv","owner":"torahappy","description":"A docker image to develop GHC/GHCJS 9 projects.","archived":false,"fork":false,"pushed_at":"2024-11-27T09:37:06.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T08:13:35.968Z","etag":null,"topics":["cabal","docker","docker-compose","ghc","ghcjs","ghcup","haskell","neovim","stack"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/taw3/ghcjs-devenv/general","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torahappy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-27T04:46:39.000Z","updated_at":"2024-11-27T13:12:17.000Z","dependencies_parsed_at":"2025-03-26T07:43:03.752Z","dependency_job_id":"d53dd9ca-0f2f-4522-9b3c-04cfe5647b7a","html_url":"https://github.com/torahappy/ghcjs-devenv","commit_stats":null,"previous_names":["aidatorajiro/ghcjs-devenv","torahappy/ghcjs-devenv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/torahappy/ghcjs-devenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torahappy%2Fghcjs-devenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torahappy%2Fghcjs-devenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torahappy%2Fghcjs-devenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torahappy%2Fghcjs-devenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torahappy","download_url":"https://codeload.github.com/torahappy/ghcjs-devenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torahappy%2Fghcjs-devenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31670326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cabal","docker","docker-compose","ghc","ghcjs","ghcup","haskell","neovim","stack"],"created_at":"2025-08-30T08:05:51.932Z","updated_at":"2026-04-11T05:35:14.322Z","avatar_url":"https://github.com/torahappy.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GHCJS development environment\n\nThis docker image is a boilerplate for GHCJS develop environment. It has GHCUp with normal GHC and experimental GHCJS 9.x, necessary libraries and GIR files for `jsaddle-webkit2gtk`, X11 forwarding preset (for testing webkit2gtk), and neovim with coc-nvim (with haskell-language-server support).\n\n## How to setup\n\nBefore setup, you need a workspace folder (different from this repository) and put `examples/docker-compose.yml` onto it. Then, run following commands:\n\n1. `mkdir .stack-cache`\n1. `mkdir .cabal-cache`\n1. `mkdir -p .stack-cache/hooks/`\n1. `curl https://raw.githubusercontent.com/haskell/ghcup-hs/master/scripts/hooks/stack/ghc-install.sh \u003e .stack-cache/hooks/ghc-install.sh`\n1. `chmod +x .stack-cache/hooks/ghc-install.sh`\n1. `echo \"system-ghc: false\" \u003e\u003e .stack-cache/config.yaml`\n1. `docker-compose up`\n\nConnect to the container via `docker exec -it rdwp-myservice-1 /root/uid-remap.bash bash` or `ssh haskell@localhost -p2222` (password: haskell)\n\nEdit project files via `nvim` or VSCode Docker Container with haskell plugin.\n\n## How to build a project\n\nJust run `stack build` (for GHC binary) or `cabal build` (for GHCJS binary) within your project.\n\nFor cabal with GHCJS, replacement of compiler and other tools is required. To do so, append \n\n```\nwith-compiler: javascript-unknown-ghcjs-ghc-9.10.0.20240413\nwith-hc-pkg: javascript-unknown-ghcjs-ghc-pkg-9.10.0.20240413\n```\n\nto the `cabal.project` file and run\n\n```\ncabal build --with-hsc2hs=javascript-unknown-ghcjs-hsc2hs-9.10.0.20240413\n```\n\nwhenever you build.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorahappy%2Fghcjs-devenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorahappy%2Fghcjs-devenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorahappy%2Fghcjs-devenv/lists"}