{"id":15460758,"url":"https://github.com/icidasset/haskell-format","last_synced_at":"2025-10-05T13:15:48.189Z","repository":{"id":145527289,"uuid":"93310025","full_name":"icidasset/haskell-format","owner":"icidasset","description":"⚠️👨‍🔬 Experiment alert.","archived":false,"fork":false,"pushed_at":"2018-03-22T12:16:04.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T11:23:16.712Z","etag":null,"topics":["formatter","haskell","parser"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icidasset.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-06-04T11:49:55.000Z","updated_at":"2018-03-22T12:15:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"16a0f0f9-bb4a-489c-a049-28f4967bcee7","html_url":"https://github.com/icidasset/haskell-format","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"134c0083da059907baaceb3ddb8dd0b22b058973"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icidasset/haskell-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icidasset%2Fhaskell-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icidasset%2Fhaskell-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icidasset%2Fhaskell-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icidasset%2Fhaskell-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icidasset","download_url":"https://codeload.github.com/icidasset/haskell-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icidasset%2Fhaskell-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278459441,"owners_count":25990349,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","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":["formatter","haskell","parser"],"created_at":"2024-10-01T23:28:29.468Z","updated_at":"2025-10-05T13:15:48.153Z","avatar_url":"https://github.com/icidasset.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haskell Format\n\n⚠️👨‍🔬 Experiment alert.\n\nAn opinionated Haskell source code parser and formatter.\n\n\n\n## How to use\n\n1. Git clone this repo somewhere\n2. `stack install`\n\n```shell\nhaskell-format path-to-haskell-file/Example.hs\n\n# Or use it with stdin\nhaskell-format\nINPUT\n```\n\n\n\n## What does this format exactly?\n\n- [x] Comments\n- [x] Exports \u0026 Imports\n- [ ] Proper indentation of code (optional)\n\nTo see what it looks like, check the examples below\nor browse through the code of this thing.\n\n\n### Top-level comments\n\nWhitespace will be inserted automatically between your top-level `--` comments and your code.\n\n#### From\n\n```haskell\nfoo = id\n\n-- Constants\n{- Bar -}\nbar = \"bar\"\n```\n\n#### To\n\n```haskell\nfoo = id\n\n\n\n-- Constants\n\n\n{- Bar -}\nbar = \"bar\"\n```\n\n\n### Exports \u0026 Imports\n\nModule exports will always be multiline and sorted by A-Z and then a-z. Imports will be sorted first by qualified or not qualified and then alphabetically.\n\n#### From\n\n```haskell\nmodule Format (zulu, (~\u003e), alpha, Type, Data(..)) where\n\nimport qualified A\nimport Z\nimport B\n```\n\n#### To\n\n```haskell\nmodule Format\n    ( Data(..)\n    , Type\n    , (~\u003e)\n    , alpha\n    , zulu\n    ) where\n\nimport B\nimport Z\n\nimport qualified A\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficidasset%2Fhaskell-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficidasset%2Fhaskell-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficidasset%2Fhaskell-format/lists"}