{"id":16313968,"url":"https://github.com/lysxia/test-monad-laws","last_synced_at":"2025-03-22T20:35:44.704Z","repository":{"id":56880167,"uuid":"113946920","full_name":"Lysxia/test-monad-laws","owner":"Lysxia","description":"QuickCheck properties for monad classes","archived":false,"fork":false,"pushed_at":"2020-10-08T21:21:33.000Z","size":82,"stargazers_count":7,"open_issues_count":6,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-11T21:52:51.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lysxia.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}},"created_at":"2017-12-12T05:20:35.000Z","updated_at":"2024-09-17T01:40:58.000Z","dependencies_parsed_at":"2022-08-20T11:40:35.382Z","dependency_job_id":null,"html_url":"https://github.com/Lysxia/test-monad-laws","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/Lysxia%2Ftest-monad-laws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lysxia%2Ftest-monad-laws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lysxia%2Ftest-monad-laws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lysxia%2Ftest-monad-laws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lysxia","download_url":"https://codeload.github.com/Lysxia/test-monad-laws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839369,"owners_count":16889609,"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-10T21:52:48.829Z","updated_at":"2024-10-28T14:19:48.165Z","avatar_url":"https://github.com/Lysxia.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testable monad and mtl laws\n\nA library for testing implementations of *mtl* classes.\n\n*test-monad-laws* defines laws for monadic effects as QuickCheck\nproperties.\n\nTo use this library,\n[*quickcheck-higherorder*](https://hackage.haskell.org/package/quickcheck-higherorder)\nis also needed.\n\nSupported classes:\n\n- `mtl`: `MonadExcept`, `MonadReader`, `MonadState`, `MonadWriter`\n- `transformers`: `MonadTrans`\n- `transformers-base`: `MonadBase`\n- `monad-control`: `MonadTransControl`, `MonadBaseControl`\n\nThis project also tests the effectiveness of these laws, by including some\nincorrect implementations, called *mutants*, and some invalid laws.\n\nOrganization\n------------\n\nFor every *mtl* class, for example `MonadReader`:\n\n- The most important module is `Test.Monad.Reader`, defining laws for the class.\n  Note that these laws are not official. But if your instance does not satisfy them,\n  now you know.\n- Mutants and bad laws are in `Test.Monad.Reader.Mutants`.\n- For convenience, all the good laws are gathered in a single list in\n  `Test.Monad.Reader.Checkers`.\n  It can easily be consumed by the library *tasty-quickcheck*.\n\nRelated links and references\n----------------------------\n\n- [validity](https://github.com/NorfairKing/validity)\n- [checkers](https://hackage.haskell.org/package/checkers)\n- [quickcheck-classes](http://hackage.haskell.org/package/quickcheck-classes)\n- [hedgehog-classes](https://hackage.haskell.org/package/hedgehog-classes)\n- [ClassLaws](https://hackage.haskell.org/package/ClassLaws)\n- [test-invariant](https://hackage.haskell.org/package/test-invariant-0.4.5.0/docs/Test-Invariant.html)\n\nPapers with some relevant laws:\n\n- Just `do` it: Simple Monadic Equational Reasoning. Jeremy Gibbons, Ralf Hinze.\n- Proof abstraction for imperative languages. William L. Harrison.\n\nHackage search terms:\n[laws](https://hackage.haskell.org/packages/search?terms=laws),\n[properties](https://hackage.haskell.org/packages/search?terms=properties).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flysxia%2Ftest-monad-laws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flysxia%2Ftest-monad-laws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flysxia%2Ftest-monad-laws/lists"}