{"id":16528533,"url":"https://github.com/mthadley/elm-byte","last_synced_at":"2025-07-26T10:39:12.948Z","repository":{"id":49203363,"uuid":"83936598","full_name":"mthadley/elm-byte","owner":"mthadley","description":"Working with Bytes in Elm.","archived":false,"fork":false,"pushed_at":"2021-06-23T19:25:31.000Z","size":6,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T05:40:12.985Z","etag":null,"topics":["byte","elm"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/mthadley/elm-byte/latest","language":"Elm","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/mthadley.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-03-05T01:31:50.000Z","updated_at":"2018-07-25T13:26:35.000Z","dependencies_parsed_at":"2022-09-07T02:40:07.747Z","dependency_job_id":null,"html_url":"https://github.com/mthadley/elm-byte","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mthadley/elm-byte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthadley%2Felm-byte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthadley%2Felm-byte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthadley%2Felm-byte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthadley%2Felm-byte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mthadley","download_url":"https://codeload.github.com/mthadley/elm-byte/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthadley%2Felm-byte/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150484,"owners_count":24043475,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["byte","elm"],"created_at":"2024-10-11T17:40:44.172Z","updated_at":"2025-07-26T10:39:12.895Z","avatar_url":"https://github.com/mthadley.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-byte\n\nA library for working with 8-bit unsigned integers with type safety.\n\nIf you are trying to work with byte-sized values in your program, you can use the `Byte` type\nexposed in this library instead of the native `Int`. This will give you better\ntype safety as you wont do things like accidentally add an `Int` somewhere and suddenly\nhave a value like `2340023`, where you meant to have something much smaller. This\ncan be particularly useful if you are trying to simulate hardware or other\nlow level, 8-bit operations.\n\n```elm\nmodule Example exposing (..)\n\nimport Byte\nimport Carry\n\nresult : Bool -- False\nresult =\n  Byte.add (Byte.fromInt 132) (Byte.fromInt 245)\n    |\u003e Byte.toInt\n    |\u003e (\u003c) 255\n\nresultWithCarry : Bool -- True\nresultwithCarry =\n  Byte.addc (Byte.fromInt 132) (Byte.fromInt 245)\n    |\u003e Carry.check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthadley%2Felm-byte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmthadley%2Felm-byte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthadley%2Felm-byte/lists"}