{"id":18890886,"url":"https://github.com/igrep/typesafe-precure","last_synced_at":"2026-03-11T03:31:39.038Z","repository":{"id":40414825,"uuid":"76096306","full_name":"igrep/typesafe-precure","owner":"igrep","description":"Type-safe transformations and purifications of PreCures (Japanese battle heroine)","archived":false,"fork":false,"pushed_at":"2025-12-14T07:59:22.000Z","size":709,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-29T21:14:13.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/typesafe-precure","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrep.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-10T06:58:54.000Z","updated_at":"2026-01-08T01:03:06.000Z","dependencies_parsed_at":"2023-11-12T06:26:19.326Z","dependency_job_id":"b87166f3-6633-4e5f-a5e5-085e18c13ab4","html_url":"https://github.com/igrep/typesafe-precure","commit_stats":{"total_commits":240,"total_committers":3,"mean_commits":80.0,"dds":"0.15000000000000002","last_synced_commit":"727efe419008cd63ab04a7b8d491f94d781e2339"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/igrep/typesafe-precure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Ftypesafe-precure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Ftypesafe-precure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Ftypesafe-precure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Ftypesafe-precure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrep","download_url":"https://codeload.github.com/igrep/typesafe-precure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Ftypesafe-precure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30369379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":[],"created_at":"2024-11-08T07:57:59.080Z","updated_at":"2026-03-11T03:31:39.008Z","avatar_url":"https://github.com/igrep.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeSafe PreCure!!\n\n[![Hackage](https://img.shields.io/hackage/v/typesafe-precure.svg)](http://hackage.haskell.org/package/typesafe-precure)\n[![CircleCI](https://circleci.com/gh/igrep/typesafe-precure.svg?style=svg)](https://circleci.com/gh/igrep/typesafe-precure)\n\nType-safe transformations and purifications of PreCures (Japanese Battle Heroine).  \nWritten in Haskell.\n\n## Features\n\n- Collection of Japanese battle heroines \"PreCure\"  and their transformation and purification phrases.\n    - Currently, supports from the first season to \"You and Idol PreCure♪\", including Cure Echo, Cure Mofurun, Cure Pekorin, Cure Infini, and Cure Oasis!\n- Monadic actions to play the speech of their transformations and purifications.\n\n## Characteristics\n\n**Each girl/PreCure/PreCure's variation/special item has her/its own type**.  \nSo only correct combinations of girls/PreCures and items can transform and purify.  \nCompared with other PreCure implementations such as rubicure, clocure, etc., this makes it *much harder* to use, but it reproduces the settings more correctly.  \n*Correctness* is more important for this library.\n\n## Installation\n\n```sh\n# pretty-simple is optional. But recommended if you try it on GHCi.\n$ stack install typesafe-precure pretty-simple\n## ... OR\n$ cabal install typesafe-precure pretty-simple\n```\n\n## Example Usage\n\n**Note**:\n- To `show` Japanese characters in GHCi, use [pretty-simple](https://github.com/cdepillabout/pretty-simple)\n\n### Get transformed PreCure, etc.\n\n```haskell\n$ ghci -interactive-print \"Text.Pretty.Simple.pPrint\"\n\nghci\u003e :m ACME.PreCure\nghci\u003e transformationSpeech (Mirai, Liko) (Mofurun :+: LinkleStoneDia)\n[ \"キュアップ・ラパパ！　ダイヤ！\"\n, \"ミラクル・マジカル・ジュエリーレ！\"\n, \"ふたりの奇跡！キュアミラクル！\"\n, \"ふたりの魔法！キュアマジカル！\"\n, \"魔法つかいプリキュア！！\"\n]\nghci\u003e transformedStyle (Mirai, Liko) (Mofurun :+: LinkleStoneRuby)\n( CureMiracle_Ruby\n, CureMagical_Ruby\n)\nghci\u003e purificationSpeech (CureMiracle_Ruby, CureMagical_Ruby) (Mofurun :+: LinkleStoneRuby, LinkleStick :+: LinkleStoneRuby)\n[ \"リンクルステッキ！\"\n, \"(モッフー！)\"\n, \"ルビー！紅の情熱よ私達の手に！\"\n, \"フルフルリンクル！\"\n, \"プリキュア！ルビー・パッショナーレ！\"\n]\n```\n\n### 🆕Get Transformation / Purification Speech Different between Episodes\n\n*Since v0.8.0.1*\n\nBy using the `:\u003c` operator, you can replace some part of the speech into another episode's version. For example:\n\n```haskell\nghci\u003e members = (Manatsu, Sango, Minori, Asuka)\nghci\u003e items = (TropicalPact :+: HeartKuruRingCureSummer, TropicalPact :+: HeartKuruRingCureCoral, TropicalPact :+: HeartKuruRingCurePapaya, TropicalPact :+: HeartKuruRingCureFlamingo)\nghci\u003e transformationSpeech (members :\u003c \"うわさも吹き飛ぶ！\") items\n[ \"プリキュア！トロピカルチェンジ！\"\n, \"レッツメイク！キャッチ！\"\n, \"チーク！\"\n, \"アイズ！\"\n, \"ヘアー！\"\n, \"リップ！\"\n, \"ドレス！\"\n, \"ときめく常夏！キュアサマー！\"\n, \"きらめく宝石！キュアコーラル！\"\n, \"ひらめく果実（フルーツ）！キュアパパイア！\"\n, \"はためく翼！キュアフラミンゴ！\"\n, \"はーっ！\"\n, \"うわさも吹き飛ぶ！\"\n, \"トロピカル〜ジュ！プリキュア！\"\n]\n```\n\nCompare with `transformationSpeech members items`!\n\nIn addition to the example above, the following transformations and purifications can be replaced by `:\u003c`:\n\nFrom Tropical-Rouge! PreCure:\n\n```haskell\npurificationSpeech  (Laura :\u003c \"赤\") MermaidAquaPot\n\nmembers = (Manatsu, Sango, Minori, Asuka, Laura)\nitems = (TropicalPact :+: HeartKuruRingCureSummer, TropicalPact :+: HeartKuruRingCureCoral, TropicalPact :+: HeartKuruRingCurePapaya, TropicalPact :+: HeartKuruRingCureFlamingo, MermaidAquaPact :+: HeartKuruRingCureLaMer)\ntransformationSpeech (members :\u003c \"子どももなれるよ！\") items\n```\n\nFrom DokiDoki! PreCure:\n\n```haskell\ntransformationSpeech (Mana :\u003c \"ヤギさん\") (LovelyCommuneSharuru :+: CureLoveads)\ntransformationSpeech ((Mana, Rikka, Alice, Makoto) :\u003c \"バラさん\") (LovelyCommuneSharuru :+: CureLoveads, LovelyCommuneRaquel :+: CureLoveads, LovelyCommuneLance :+: CureLoveads, LovelyCommuneDavi :+: CureLoveads)\ntransformationSpeech ((Mana, Rikka, Alice, Makoto, Aguri) :\u003c \"タコさん\") (LovelyCommuneSharuru :+: CureLoveads, LovelyCommuneRaquel :+: CureLoveads, LovelyCommuneLance :+: CureLoveads, LovelyCommuneDavi :+: CureLoveads, LoveEyesPalette :+: CureLoveads)\n```\n\n### PreCure Monad\n\n```haskell\nghci\u003e :{\nghci\u003e let scene = do\n....\u003e       say \"この罪を抱いたまま、もう一度、グランプリンセスを目指す！\"\n....\u003e       scarlet \u003c- transform Towa (PrincessPerfume :+: DressUpKeyScarlet)\n....\u003e       scarletModeElegant \u003c- transform scarlet (PrincessPerfume :+: DressUpKeyPhoenix)\n....\u003e       purify scarletModeElegant (ScarletViolin :+: DressUpKeyPhoenix)\nghci\u003e :}\nghci\u003e :t scene\nscene :: ACME.PreCure.Monad.PreCureMonad ()\n```\n\n#### Transform and Purify as a Pure Function\n\n```haskell\nghci\u003e composeEpisode scene\n[ \"この罪を抱いたまま、もう一度、グランプリンセスを目指す！\"\n, \"プリキュア！プリンセスエンゲージ！\"\n, \"深紅の炎のプリンセス！キュアスカーレット！\"\n, \"冷たい檻に閉ざされた夢、返していただきますわ。\"\n, \"お覚悟を決めなさい！\"\n, \"エクスチェンジ！モードエレガント！\"\n, \"スカーレット・バイオリン！フェニックス！\"\n, \"羽ばたけ炎の翼！\"\n, \"プリキュア！ フェニックス・ブレイズ！\"\n, \"ごきげんよう。\"\n]\n```\n\n#### Transform and Purify as an IO Action\n\nThe phrases are printed by line. Inspired by the similar feature of rubicure.\n\n```haskell\nghci\u003e printEpisode scene\nこの罪を抱いたまま、もう一度、グランプリンセスを目指す！\nプリキュア！プリンセスエンゲージ！\n深紅の炎のプリンセス！キュアスカーレット！\n冷たい檻に閉ざされた夢、返していただきますわ。\nお覚悟を決めなさい！\nエクスチェンジ！モードエレガント！\nスカーレット・バイオリン！フェニックス！\n羽ばたけ炎の翼！\nプリキュア！ フェニックス・ブレイズ！\nごきげんよう。\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrep%2Ftypesafe-precure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrep%2Ftypesafe-precure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrep%2Ftypesafe-precure/lists"}