{"id":13482412,"url":"https://github.com/JustusAdam/language-haskell","last_synced_at":"2025-03-27T13:31:45.051Z","repository":{"id":2853902,"uuid":"46439690","full_name":"JustusAdam/language-haskell","owner":"JustusAdam","description":"Highlighting support for the Haskell language in visual studio code.","archived":false,"fork":false,"pushed_at":"2024-04-16T15:16:58.000Z","size":1668,"stargazers_count":95,"open_issues_count":39,"forks_count":48,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-01T20:42:09.620Z","etag":null,"topics":["haskell-language","highlighting","visual-studio-code"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items/justusadam.language-haskell","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/JustusAdam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2015-11-18T18:44:17.000Z","updated_at":"2024-03-19T11:18:04.000Z","dependencies_parsed_at":"2023-07-05T18:31:19.166Z","dependency_job_id":null,"html_url":"https://github.com/JustusAdam/language-haskell","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustusAdam%2Flanguage-haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustusAdam%2Flanguage-haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustusAdam%2Flanguage-haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustusAdam%2Flanguage-haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustusAdam","download_url":"https://codeload.github.com/JustusAdam/language-haskell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213388631,"owners_count":15579771,"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":["haskell-language","highlighting","visual-studio-code"],"created_at":"2024-07-31T17:01:01.738Z","updated_at":"2024-07-31T17:08:42.749Z","avatar_url":"https://github.com/JustusAdam.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# Haskell Syntax Highlighting Support\n\n\nSyntax highlighting support for Haskell and associated languages (e.g. Cabal, Happy and Alex) in Visual Studio Code.\n\n## Syntax highlighting\n\nAdds syntax highlighting support for Haskell (.hs and .lhs). This is a (now heavily) modified version of\nthe syntax file from the [Haskell TextMate bundle](https://github.com/textmate/haskell.tmbundle).\nAdditionally there is support for Cabal files (.cabal) via a concoction of my own.\n\nAlso adds automatic indentation after `where`, `do`, `-\u003e` etc. and surrounding brackets (`[]`, `{}` etc)\n\n![Screenshot Haskell](/images/screenshot1.png?raw=true)\n\n![Screenshot Cabal](/images/screenshot-cabal1.png?raw=true)\n\n## Bugs\n\nIf you happen to notice bugs or have suggestions for improvements visit the [issue\nsection](https://github.com/JustusAdam/language-haskell/issues) of the\n[repository](https://github.com/JustusAdam/language-haskell).\n\n## Themes\n\nThis extension provides TextMate scopes for use in syntax highlighting, but the colours displayed\ndepend on the theme being used.\nUnfortunately many themes have incomplete support for the different TextMate scopes, and as a\nresult different tokens can end up with identical colours.\n\nFor a theme that supports all the scopes provided by this extension, see the\n[Groovy Lambda theme](https://github.com/sheaf/groovy-lambda).\n\n## Theme authors\n\nI recently realized that I am woefully unaware of whether there are any themes with Haskell-specific\nrules and how changes to this extension affect such themes. If you are a theme author that wishes to\nuse Haskell specific rules, or are aware of a theme with Haskell specific rules, feel free to get in\ntouch.\n\nWith version `3.0.0` some new tm scopes were added, such that now record and GADT definitions can be\ndistinguished. Let me know if there are any questions about the scope assignment in this\nextension or if there are further scope assigments you'd like to see added.\n\nWe now publish an automatically generated, complete list of the textmate scopes\nused in our grammars. You can find the lists of scopes in the\n[scope-lists](/scope-lists) directory.\n\n## Contributing\n\nThis project currently uses the `YAML-tmLanguage` format for language grammars (Haskell, Cabal, alex, happy, ...).\nThe grammars can be found in the `syntaxes` directory.\nTo generate `JSON` grammars (which is the format VS Code expects), we use the Node package `js-yaml` (requires `npx` in PATH):\n\n```sh\nnpx js-yaml haskell.YAML-tmLanguage \u003e haskell.json\n```\n\nFor testing, we use the Node package `vscode-tmgrammar-test`. For instance, to generate/check\nthe scopes of a Haskell source file, run:\n\n```sh\nnpx vscode-tmgrammar-test \"-s\" \"source.haskell\" \"-g\" \"syntaxes/haskell.json\" \"-t\" \"myTestFile.hs\"\n```\n\n\nTo run the test-suite, simply call `make test`.\nThis will build the grammar files and run `vscode-tmgrammar-test` on all the files in the testsuite.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustusAdam%2Flanguage-haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJustusAdam%2Flanguage-haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustusAdam%2Flanguage-haskell/lists"}