{"id":22702987,"url":"https://github.com/flupe/verification-template","last_synced_at":"2025-07-02T06:34:06.614Z","repository":{"id":37791175,"uuid":"359733322","full_name":"flupe/verification-template","owner":"flupe","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-16T20:21:23.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T23:01:57.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Agda","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/flupe.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":"2021-04-20T08:03:07.000Z","updated_at":"2022-07-14T21:29:48.000Z","dependencies_parsed_at":"2022-06-23T20:24:06.983Z","dependency_job_id":null,"html_url":"https://github.com/flupe/verification-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flupe/verification-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flupe%2Fverification-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flupe%2Fverification-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flupe%2Fverification-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flupe%2Fverification-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flupe","download_url":"https://codeload.github.com/flupe/verification-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flupe%2Fverification-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263087262,"owners_count":23411864,"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-12-10T07:16:31.851Z","updated_at":"2025-07-02T06:34:06.545Z","avatar_url":"https://github.com/flupe.png","language":"Agda","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template for Practical Verification of Functional Libraries\n\n## Prerequisites:\n\nTo use this template it is necessary to have cabal, ghc and make installed. If\nyou don't have these installed you can follow the instructions below, else you\ncan continue on to [here.](#dependencies)\n\n### For Windows (Using Chocolately):\n\nIt is recommended that you install chocolately as a package manager that allows\nfor installing software by using the built-in terminal in Windows. For the\nlatest instruction on installing chocolately [click\nhere](https://chocolatey.org/install#individual) and use the individual\ninstallation method.\n\nTo install all prerequisites execute the following commands in your terminal:\n```\nchoco install ghc cabal make\nrefreshenv\n```\n\nNow you can go ahead and install the dependencies.\n\n## Dependencies\n\nThis template relies on a custom fork of both [agda2hs] and [Agda].\nTo build them from source, do the following:\n\n```\ngit clone https://github.com/flupe/verification-template\ncd verification-template\ncabal install Agda    # If there are conflicting dependencies for base use the following flag: --allow-newer=base\ncabal install agda2hs # If there are conflicting dependencies for base use the following flag: --allow-newer=base\n```\n\nBuilding Agda may take a while.\n\nIn order to use the Haskell prelude of `agda2hs` from your Agda code, you also\nneed to tell Agda where to locate the library.\n\nClone Jesper's fork of agda2hs:\n\n```\ngit clone -b erasure-annotations https://github.com/jespercockx/agda2hs\n```\n### For Unix:\n\nInside the file `~/.agda/libraries`, add the following line:\n\n```\n/your/path/to/agda2hs/agda2hs.agda-lib\n```\n\n### For Windows:\n\nFirst off execute the following command:\n\n```\n(test-path -path $home\\AppData\\Roaming\\agda\\libraries -pathtype Leaf) ? (echo \"File not created, it already exists\") : (new-item -path $home\\AppData\\Roaming\\agda\\libraries)\n```\n\nEither add the following line to `C:\\Users\\\u003cUSER\u003e\\AppData\\Roaming\\agda\\libraries` or alternatively when using powershell `$home\\AppData\\Roaming\\agda\\libraries`, \n\n```\n\u003c/your/path/to/agda2hs/agda2hs.agda-lib\u003e\n```\n\nOr run the following command in powershell:\n\n```\nadd-content $home\\AppData\\Roaming\\agda\\libraries \"`n\u003c/your/path/to/agda2hs/agda2hs.agda-lib\u003e\"\n```\n\n*You will have to create this file if it does not exist.*\n\n## Development\n\nYou should be good to go. Open any file in the `src/` directory inside your IDE of choice and\nyou should be able to use the Haskell prelude in your code without any issue.\n\nRunning `make` at the root of the project will:\n- compile `Everything.agda` using `agda2hs`.\n  Don't forget to import your agda files in `Everything.agda` to have them\n  compile to Haskell automatically.\n- compile the Haskell library generated from the Agda files in `lib/`.\n- comile the demo Haskell executable in `demo/`\n\n[Agda]:    https://github.com/agda/Agda\n[agda2hs]: https://github.com/agda/agda2hs\n\nTo run the demo executable, just launch `cabal run demo`.\n\nTo test out your library in a REPL, use `cabal repl project`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflupe%2Fverification-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflupe%2Fverification-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflupe%2Fverification-template/lists"}