{"id":19512472,"url":"https://github.com/vmchale/hlint-lib","last_synced_at":"2025-04-26T04:31:34.610Z","repository":{"id":128761094,"uuid":"153949491","full_name":"vmchale/hlint-lib","owner":"vmchale","description":"Library containing some standard HLint helpers","archived":true,"fork":false,"pushed_at":"2020-10-02T15:10:35.000Z","size":33,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T23:17:17.846Z","etag":null,"topics":["dhall","dhall-lang","hlint","library"],"latest_commit_sha":null,"homepage":null,"language":"Dhall","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/vmchale.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":"2018-10-20T21:21:48.000Z","updated_at":"2024-09-27T16:00:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d2dec2c-65c9-415e-a40a-3d7089cbd8ca","html_url":"https://github.com/vmchale/hlint-lib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhlint-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhlint-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhlint-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhlint-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmchale","download_url":"https://codeload.github.com/vmchale/hlint-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250931022,"owners_count":21509802,"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":["dhall","dhall-lang","hlint","library"],"created_at":"2024-11-10T23:26:18.178Z","updated_at":"2025-04-26T04:31:34.605Z","avatar_url":"https://github.com/vmchale.png","language":"Dhall","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hlint-lib\n\n[![Build Status](https://travis-ci.org/vmchale/hlint-lib.svg?branch=master)](https://travis-ci.org/vmchale/hlint-lib)\n\nConfiguration for [hlint](http://hackage.haskell.org/package/hlint), as a Dhall\nlibrary.\n\n## Use\n\nAs an example:\n\n```dhall\nlet hlint = ./constructors.dhall\n\nlet recursion = ./recursion.dhall\n\nlet fixity = ./fixity.dhall\n\nlet base = ./base.dhall\n\nlet bannedFunctions =\n      [ hlint.functions { functions = [ hlint.globalBan \"fromJust\" ] } ]\n\nin  fixity.defFixities # bannedFunctions # recursion # base\n```\n\nSave this as `hlint.dhall`, run `dhall-to-yaml --file hlint.dhall` and you should\nget\n\n```yaml\n- fixity: \"infixr 3 ***\"\n- fixity: \"infixr 3 \u0026\u0026\u0026\"\n- fixity: \"infixr 2 +++\"\n- fixity: \"infixr 2 |||\"\n- fixity: \"infixr 1 \u003c=\u003c\"\n- fixity: \"infixl 4 \u003c$\"\n- fixity: \"infixl 4 $\u003e\"\n- fixity: \"infixl 1 \u003c\u0026\u003e\"\n- fixity: \"infixl 4 *\u003e\"\n- fixity: \"infixl 4 \u003c*\"\n- fixity: \"infixl 3 \u003c|\u003e\"\n- fixity: \"infixl 4 \u003c**\u003e\"\n- functions:\n    - name: fromJust\n      within: []\n- error:\n    lhs: \"hylo embed\"\n    name: \"Use ananorphism\"\n    rhs: ana\n- error:\n    lhs: \"hylo f project\"\n    name: \"Use catamorphism\"\n    rhs: \"cata f\"\n- error:\n    lhs: \"hyloM (pure . embed)\"\n    name: \"Use monadic anamorphism\"\n    rhs: anaM\n- error:\n    lhs: \"hyloM f (pure . project)\"\n    name: \"Use monadic catamorphism\"\n    rhs: \"cataM f\"\n- error:\n    lhs: \"fmap (const x)\"\n    rhs: \"(x \u003c$)\"\n- error:\n    lhs: \"fmap (const ())\"\n    name: \"Use void\"\n    rhs: void\n- error:\n    lhs: \"fromMaybe []\"\n    name: Use concat\n    rhs: concat\n```\n\n...containing prepackaged hints for working with recursion schemes as well as\nfixity declarations for various operators in `base`.\n\n## Contents\n\nLovingly provided by [polyglot](http://github.com/vmchale/polyglot):\n\n```\n───────────────────────────────────────────────────────────────────────────────\n Language             Files       Lines         Code     Comments       Blanks\n───────────────────────────────────────────────────────────────────────────────\n Dhall                    7         141          117            0           24\n Makefile                 1           9            6            0            3\n Markdown                 2          90           73            0           17\n YAML                     1          26           24            0            2\n───────────────────────────────────────────────────────────────────────────────\n Total                   11         266          220            0           46\n───────────────────────────────────────────────────────────────────────────────\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fhlint-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmchale%2Fhlint-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fhlint-lib/lists"}