{"id":20230846,"url":"https://github.com/sharkdp/purescript-quantities","last_synced_at":"2026-03-07T01:35:02.697Z","repository":{"id":9869855,"uuid":"63606927","full_name":"sharkdp/purescript-quantities","owner":"sharkdp","description":"Physical quantities and units","archived":false,"fork":false,"pushed_at":"2023-08-22T15:48:35.000Z","size":181,"stargazers_count":52,"open_issues_count":3,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-05T09:37:01.169Z","etag":null,"topics":["math","physics","purescript","unit-conversion","units"],"latest_commit_sha":null,"homepage":"https://pursuit.purescript.org/packages/purescript-quantities/","language":"PureScript","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/sharkdp.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},"funding":{"github":"sharkdp"}},"created_at":"2016-07-18T13:50:24.000Z","updated_at":"2025-11-24T08:15:50.000Z","dependencies_parsed_at":"2023-12-15T21:18:15.282Z","dependency_job_id":"df5888e1-21f1-41c5-9a37-b3c21583113c","html_url":"https://github.com/sharkdp/purescript-quantities","commit_stats":{"total_commits":170,"total_committers":14,"mean_commits":"12.142857142857142","dds":0.388235294117647,"last_synced_commit":"1a51d68236d28886804a2ba730ca1f18e36ad27f"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/sharkdp/purescript-quantities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpurescript-quantities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpurescript-quantities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpurescript-quantities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpurescript-quantities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharkdp","download_url":"https://codeload.github.com/sharkdp/purescript-quantities/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpurescript-quantities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["math","physics","purescript","unit-conversion","units"],"created_at":"2024-11-14T07:44:02.552Z","updated_at":"2026-03-07T01:35:02.674Z","avatar_url":"https://github.com/sharkdp.png","language":"PureScript","readme":"# purescript-quantities\n\nA PureScript library to represent and work with physical quantities and units. Note that this library\nfocuses on a representation at *run time* as opposed to other projects which use the type system to\nencode physical units at *compile time*.\n\n## Examples\n\n``` purs\n\u003e showResult $ 2.0 .* minute ⊕ 30.0 .* second\n\"2.5 min\"\n\n\u003e showResult $ (85.0 .* mile ./ hour) `convertTo` (meter ./ second)\n\"37.9984 m/s\"\n\n\u003e showResult $ (10.0 .* meter ./ second) `convertTo` (kilo meter ./ hour)\n\"36 km/h\"\n\n\u003e log $ showResult $ (10.0 .* joule) `convertTo` watt\nCannot convert unit 'J' (SI: 'm²·g/s²')\n            to unit 'W' (SI: 'm²·g/s³')\n\n\u003e showResult $ sin (90.0 .* degree)\n\"1\"\n```\n\nCalculate the time it takes to download a *2.7GB* file on a *6Mbit/s* connection:\n``` purs\n\u003e let filesize = 2.7 .* giga byte\n\u003e let speed = 6.0 .* mega bit ./ second\n\u003e showResult $ (filesize ⊘ speed) `convertTo` minute\n\"60 min\"\n```\n\nCalculate the oscillation period *T = 2π sqrt(L/g)* of a pendulum with length *L = 20cm*:\n``` purs\n\u003e let g = 9.81 .* meter ./ second .^ 2.0\n\u003e let length = 20.0 .* centi meter\n\u003e let period = scalar 2.0 ⊗ pi ⊗ sqrt (length ⊘ g)\n\n\u003e prettyPrint (fullSimplify period)\n\"0.89714 s\"\n```\n\n## Development\n```\nnpm install\nspago -x test.dhall test\n```\n\n## Documentation\n\n- [Module documentation](https://pursuit.purescript.org/packages/purescript-quantities)\n","funding_links":["https://github.com/sponsors/sharkdp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Fpurescript-quantities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharkdp%2Fpurescript-quantities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Fpurescript-quantities/lists"}