{"id":23020199,"url":"https://github.com/brainrake/purescript-elm-basics","last_synced_at":"2026-01-26T20:13:01.720Z","repository":{"id":28726174,"uuid":"32247336","full_name":"brainrake/purescript-elm-basics","owner":"brainrake","description":"Purescript port of Elm core library's Basics","archived":false,"fork":false,"pushed_at":"2015-11-12T05:14:05.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T00:51:46.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainrake.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":"2015-03-15T05:57:18.000Z","updated_at":"2015-11-17T23:26:41.000Z","dependencies_parsed_at":"2022-08-31T05:01:58.720Z","dependency_job_id":null,"html_url":"https://github.com/brainrake/purescript-elm-basics","commit_stats":null,"previous_names":["brainrape/purescript-elm-basics"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brainrake/purescript-elm-basics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fpurescript-elm-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fpurescript-elm-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fpurescript-elm-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fpurescript-elm-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainrake","download_url":"https://codeload.github.com/brainrake/purescript-elm-basics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fpurescript-elm-basics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28787221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2024-12-15T12:13:28.327Z","updated_at":"2026-01-26T20:13:01.699Z","avatar_url":"https://github.com/brainrake.png","language":"PureScript","readme":"## `purescript-elm-basics`\n\nThis is a Purescript port of the `Basics` module from [Elm's core library](https://github.com/elm-lang/core/blob/master/src/Basics.elm). This library only defines a few values, the rest are available from Purescript libraries or the [Prelude](https://github.com/purescript/purescript/tree/master/prelude).\n\nThis library is intended to help port [Elm](http://elm-lang.org/) libraries and programs to [Purescript](http://purescript.org/).\n\n\n### Installation and Usage\n\n`bower install purescript-elm-basics`\n\n`import Elm.Basics`\n\n\n### `Elm.Basics` Module Contents\n\nPlease also see the detailed [Module Documentation](docs/Elm/Basics.md).\n\n* The built-in type `Number` is used instead of `Float`\n\n* `degrees`, `radians`, `turns` are functions with type `Number -\u003e Number`\n\n* `clamp :: Number -\u003e Number -\u003e Number -\u003e Number`\n\n* `\u003c|` and `|\u003e` are provided and synonymous with `$` and `#`\n\n\n### Not Included\n\nThe other types and values from Elm's `Basics` all have Purescript analogues and can be `import`ed from their respective modules, so they were not included. Here's a short migration guide:\n\n\n#### `Prelude`\n\n* `==`, `/=`, `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `+`, `-`, `*`, `/`, `negate`, `not`, `\u0026\u0026`, `||`, `++`, `otherwise`, `flip` can be imported from Purescript's `Prelude`\n\n*  `\u003c\u003c` and `\u003e\u003e` become  `\u003c\u003c\u003c` and `\u003e\u003e\u003e` from `Prelude`\n\n* `toString` is superseded by the `show` method of the `Show` typeclass from [Prelude](https://github.com/purescript/purescript-prelude/blob/master/docs/Prelude.md#show)\n\n* `identity` becomes `id`, and `always` becomes `const`, from `Prelude`\n\n* `Order` becomes `Ordering` and is used with the `compare` method of the `Ord` typeclass from [Prelude](https://github.com/purescript/purescript-prelude/blob/master/docs/Prelude.md#ordering)\n\n* `xor` becomes `.^.` from the `Bits` type class, of which there is an instance for `Num`\n\n\n#### `Math`\n\n* `max`, `min`,  `round`, `floor`, `abs`, `sqrt`, `e`, `pi`, `cos`, `sin`, `tan`, `acos`, `asin`, `atan`, `atan2` are in module `Math` from [purescript-math](https://github.com/purescript/purescript-math)\n\n* `ceiling` becomes `ceil`, and `^` becomes `pow` in `Math`\n\n\n#### `Data.Tuple`\n\n* `fst`, `snd`, `curry`, `uncurry` are in `Data.Tuple` from [purescript-tuples](https://github.com/purescript/purescript-tuples)\n\n#### `Data.Int`\n\n* `toNumber` (to be used instead of `toFloat`), as well as `floor`, `ceil`, `round` and others are in `Data.Int` from [purescript-integers](https://github.com/purescript/purescript-integers)\n\n\n#### `Global`\n\n* `isNaN` and `isFinite` (negated `isInfinite`) available from [purescript-globals](https://github.com/purescript/purescript-globals)\n\n\n### TODO\n\n* `//`, `rem`, `%`, `logBase`, `truncate`\n\n* `toPolar`, `fromPolar`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainrake%2Fpurescript-elm-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainrake%2Fpurescript-elm-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainrake%2Fpurescript-elm-basics/lists"}