{"id":22409470,"url":"https://github.com/iodevs/elm-history","last_synced_at":"2025-03-27T02:22:13.381Z","repository":{"id":62418570,"uuid":"151310450","full_name":"iodevs/elm-history","owner":"iodevs","description":"A history pattern for Elm","archived":false,"fork":false,"pushed_at":"2018-10-05T12:33:57.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T07:43:47.544Z","etag":null,"topics":["elm","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iodevs.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":"2018-10-02T19:21:56.000Z","updated_at":"2022-09-13T08:20:49.000Z","dependencies_parsed_at":"2022-11-01T16:31:52.118Z","dependency_job_id":null,"html_url":"https://github.com/iodevs/elm-history","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Felm-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Felm-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Felm-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Felm-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iodevs","download_url":"https://codeload.github.com/iodevs/elm-history/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767583,"owners_count":20668880,"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":["elm","hacktoberfest"],"created_at":"2024-12-05T12:07:48.736Z","updated_at":"2025-03-27T02:22:13.342Z","avatar_url":"https://github.com/iodevs.png","language":"Elm","readme":"# elm-history\nThis library helps with keeping history of states of your variables.\nFor example, you defined a width of some div (elm-css or style or ...) and\nthis width has been changed by user's action. After that you want to have\nsame width of div as before user's action.\n\nInstall package usually a way (elm-0.19):\n```\nelm install iodevs/elm-history\n```\n\n\n## Usage:\n```haskell\nimport History exposing (History, create, forward, rewind, rewindAll)\n\nboxWidth : History String\nboxWidth =\n    create \"200px\"\n\n\nnewBoxWidth =\n    boxWidth\n        |\u003e forward \"300px\"  -- History \"300px\" [\"200px\"]\n        |\u003e forward \"400px\"  -- History \"400px\" [\"300px\", \"200px\"]\n        |\u003e forward \"500px\"  -- History \"500px\" [\"400px\", \"300px\", \"200px\"]\n        |\u003e rewind           -- History \"400px\" [\"300px\",\"200px\"]\n        |\u003e rewindAll        -- History \"200px\" []\n        |\u003e current          -- \"200px\"\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodevs%2Felm-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiodevs%2Felm-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodevs%2Felm-history/lists"}