{"id":15555748,"url":"https://github.com/unkindpartition/vim-hs-module-name","last_synced_at":"2025-09-03T12:36:53.976Z","repository":{"id":5372689,"uuid":"6559785","full_name":"UnkindPartition/vim-hs-module-name","owner":"UnkindPartition","description":"Vim plugin to infer and insert Haskell module name","archived":false,"fork":false,"pushed_at":"2012-11-07T09:55:05.000Z","size":120,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T12:53:07.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","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/UnkindPartition.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}},"created_at":"2012-11-06T09:46:05.000Z","updated_at":"2018-05-18T12:57:13.000Z","dependencies_parsed_at":"2022-09-07T14:50:09.451Z","dependency_job_id":null,"html_url":"https://github.com/UnkindPartition/vim-hs-module-name","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Fvim-hs-module-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Fvim-hs-module-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Fvim-hs-module-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnkindPartition%2Fvim-hs-module-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnkindPartition","download_url":"https://codeload.github.com/UnkindPartition/vim-hs-module-name/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131246,"owners_count":20728299,"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":[],"created_at":"2024-10-02T15:10:29.949Z","updated_at":"2025-03-29T02:46:17.155Z","avatar_url":"https://github.com/UnkindPartition.png","language":"VimL","readme":"# hs-module-name Vim plugin\n\nThis vim plugin can automatically figure out and insert the name of a Haskell\nmodule based on the filename.\n\n## Installation\n\nThis plugin is [pathogen][pathogen]-compatible. If you use pathogen, just clone\nor copy this repo under `~/.vim/bundle`.\n\nOtherwise, use something like\n\n    cp -r vim-hs-module-name/* ~/.vim/\n\n## Usage\n### Automatic insertion\nWhen you create a new `.hs` file, the header\n\n    module Foo.Bar where\n\nis automatically inserted, where `Foo.Bar` is the module name inferred from the\nfile name.\n\nSet the `g:hs_module_no_auto` variable to disable this.\n\n### Manual insertion\nWhen you are in a buffer with the `haskell` filetype, press `M` to insert the\nmodule header as described above.\n\nTo use a different key sequence instead of `M`, set the `g:hs_module_mapping`\nvariable to the desired key sequence.\n\nSet the `g:hs_module_no_mappings` variable to disable this.\n\n### Command\nIf you want to set up other bindings or hooks, use the\n`:InsertHaskellModuleName` command.\n\n## How the inference works\nThe components of the module name are assumed to be the largest\nprefix of the file path components where all the components start with\ncapital letters.\n\nE.g. for the file\n\n    /home/User/project/src/Foo/Bar.hs\n\nthe module name is inferred to be `Foo.Bar`. This works pretty well in\npractice.\n\n[pathogen]: https://github.com/tpope/vim-pathogen\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkindpartition%2Fvim-hs-module-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funkindpartition%2Fvim-hs-module-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funkindpartition%2Fvim-hs-module-name/lists"}