{"id":20761999,"url":"https://github.com/composewell/markdown-doctest","last_synced_at":"2025-07-18T02:35:03.428Z","repository":{"id":150890737,"uuid":"561635042","full_name":"composewell/markdown-doctest","owner":"composewell","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-06T16:55:42.000Z","size":13,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T17:25:30.765Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/composewell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2022-11-04T06:04:43.000Z","updated_at":"2023-04-15T05:21:57.000Z","dependencies_parsed_at":"2024-11-17T10:28:42.443Z","dependency_job_id":"b106373c-d1ee-4b1a-bc38-8ded12df3d58","html_url":"https://github.com/composewell/markdown-doctest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/composewell/markdown-doctest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composewell%2Fmarkdown-doctest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composewell%2Fmarkdown-doctest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composewell%2Fmarkdown-doctest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composewell%2Fmarkdown-doctest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/composewell","download_url":"https://codeload.github.com/composewell/markdown-doctest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composewell%2Fmarkdown-doctest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265692468,"owners_count":23812201,"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-11-17T10:28:37.031Z","updated_at":"2025-07-18T02:35:03.420Z","avatar_url":"https://github.com/composewell.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown doctest\n\n## Installation\n\n```\n$ cabal install markdown-doctest\n```\n\n## Usage\n\n```\n$ ./markdown-doctest \u003cfilename.md\u003e\n```\n\nNote: The ghc environment file should exist.\n\n## Syntax\n\n3 type of codeblocks are parsed,\n\n- `haskell`: All `haskell` blocks are tangled into a common file and checked.\n- `haskell unshared`: These blocks are loaded independently and dont share anything.\n- `haskell docspec`: These blocks share the syntax of docspec and share the env.\n\n## Example\n\n`markdown-doctest` will successfully validate this file.\n\n```haskell\nimport qualified Prelude as P\n```\n\n```haskell unshared\nimport qualified Prelude as P\n\nmain =\n    P.print \"Hello, World!\"\n```\n\n```haskell docspec\n\u003e\u003e\u003e import qualified Prelude as P\n```\n\n```haskell\nmain =\n    P.print \"Hello, World!\"\n```\n\n```haskell docspec\n\u003e\u003e\u003e P.filter P.odd [1..10]\n[1,3,5,7,9]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposewell%2Fmarkdown-doctest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomposewell%2Fmarkdown-doctest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposewell%2Fmarkdown-doctest/lists"}