{"id":18474655,"url":"https://github.com/ibizaman/hs-template-project","last_synced_at":"2025-04-08T12:32:18.817Z","repository":{"id":148513414,"uuid":"233479294","full_name":"ibizaman/hs-template-project","owner":"ibizaman","description":"Template haskell project to bootstrap a haskell project","archived":false,"fork":false,"pushed_at":"2020-07-12T06:38:22.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T12:41:34.507Z","etag":null,"topics":["boilerplate-template","haskell","hoogle","modd"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/ibizaman.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":"2020-01-13T00:17:02.000Z","updated_at":"2021-03-07T19:06:16.000Z","dependencies_parsed_at":"2023-05-20T09:00:35.359Z","dependency_job_id":null,"html_url":"https://github.com/ibizaman/hs-template-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fhs-template-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fhs-template-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fhs-template-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fhs-template-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibizaman","download_url":"https://codeload.github.com/ibizaman/hs-template-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842823,"owners_count":21005351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["boilerplate-template","haskell","hoogle","modd"],"created_at":"2024-11-06T10:30:13.914Z","updated_at":"2025-04-08T12:32:18.806Z","avatar_url":"https://github.com/ibizaman.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template Haskell Project\n\nThis is my template haskell project to quickly get started.\n\nIt provides a sample application in `app/` and library in `src/` with\na small test in `test/`.\n\nBuilding and running the app is done with:\n\n```\nstack build --haddock --haddock-deps\nstack run\n```\n\nThe haddock arguments are used to generate the documentation.\n\nRunning the tests is done with:\n\n```\nstack test\n```\n\nLooking at the documentation is best done through using hoogle, to do\nthat, run:\n\n```\nstack hoogle -- server --local --port=65000\n```\n\nThen point your browser at http://localhost:65000.\n\n## Build code and reload daemons on change\n\nA `modd` https://github.com/cortesi/modd config file is provided so\nthat all of the above commands are ran as necessary when a source file\nchanges. To use it, simply run the following in the project's root:\n\n```\nmodd\n```\n\n## Language Server Protocol\n\nA haskell-ide-engine https://github.com/haskell/haskell-ide-engine\nconfig file `hie.yaml` is provided. The config file allows the LSP\nserver to work on test files, see\nhttps://github.com/haskell/haskell-ide-engine/issues/1564#issuecomment-574760343.\n\n## Github Action\n\nThis template project includes a github action workflow which builds\nand tests the project as well as uploading the binary as a github\nworkflow artifact.\n\nThe github action workflow caches the haskell packages so the first\nbuild will be quite slow as it will download ghc and all dependencies\nwhile the following ones will be substantially faster. Initial tests\nshowed a first build took 6 minutes 30 seconds while the subsequent\nones took 1 minute 40 seconds.\n\nTo download it, follow these steps:\n1. Go to the latest github action run\n2. Download the artifact.\n3. Unzip it with `unzip hs-template-project.zip`\n4. set the executable permission bit with `chmod a+x hs-template-project/hs-template-project`\n5. run it with `./hs-template-project/hs-template-project` and you should see printed `\"Hello World\"`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibizaman%2Fhs-template-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibizaman%2Fhs-template-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibizaman%2Fhs-template-project/lists"}