{"id":16678057,"url":"https://github.com/johnynek/fastparse-cats","last_synced_at":"2025-07-01T10:03:52.731Z","repository":{"id":57739035,"uuid":"131533119","full_name":"johnynek/fastparse-cats","owner":"johnynek","description":"Cats instances for fastparse","archived":false,"fork":false,"pushed_at":"2018-05-06T02:57:46.000Z","size":28,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T21:40:40.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnynek.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-04-29T21:54:29.000Z","updated_at":"2023-05-19T10:34:04.000Z","dependencies_parsed_at":"2022-08-24T17:51:20.346Z","dependency_job_id":null,"html_url":"https://github.com/johnynek/fastparse-cats","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/johnynek/fastparse-cats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnynek%2Ffastparse-cats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnynek%2Ffastparse-cats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnynek%2Ffastparse-cats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnynek%2Ffastparse-cats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnynek","download_url":"https://codeload.github.com/johnynek/fastparse-cats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnynek%2Ffastparse-cats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262941542,"owners_count":23388148,"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":[],"created_at":"2024-10-12T13:28:16.179Z","updated_at":"2025-07-01T10:03:52.709Z","avatar_url":"https://github.com/johnynek.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://api.travis-ci.org/johnynek/fastparse-cats.svg)](https://travis-ci.org/johnynek/fastparse-cats)\n[![codecov.io](http://codecov.io/github/johnynek/fastparse-cats/coverage.svg?branch=master)](http://codecov.io/github/johnynek/fastparse-cats?branch=master)\n[![Latest version](https://index.scala-lang.org/johnynek/fastparse-cats/fastparse-cats-core/latest.svg?color=orange)](https://index.scala-lang.org/johnynek/fastparse-cats/fastparse-cats-core)\n\n# fastparse-cats\n\n[Cats](https://github.com/typelevel/cats) instances for [Fastparse](https://github.com/lihaoyi/fastparse) parsers.\n\nThis gives you a lawful Monad and Alternative for fastparse Parsers. This allows you to easily\nreuse generic functions from cats with fastparse.\n\n### Quick Start\n\nfastparse-cats supports Scala 2.11, and 2.12. It supports both the JVM\nand JS platforms.\n\nTo use fastparse-cats in your own project, you can include this snippet in\nyour `build.sbt` file:\n\n```scala\n// use this snippet for the JVM\nlibraryDependencies ++= List(\"org.bykn\" %% \"fastparse-cats-core\" % \"0.1.0\")\n\n// use this snippet for JS, or cross-building\nlibraryDependencies ++= List(\"org.bykn\" %%% \"fastparse-cats-core\" % \"0.1.0\")\n```\n\nThere is also support for `fastparse-byte` by using\n```scala\nlibraryDependencies ++= List(\"org.bykn\" %% \"fastparse-cats-byte\" % \"0.1.0\")\n```\n\nTo use the instances, make the following imports:\n\n```scala\n// get the Monad and Alternative for string Parser\nimport org.bykn.fastparse_cats.StringInstances._\n```\nor\n```scala\n// get the Monad and Alternative for byte Parser\nimport org.bykn.fastparse_cats.ByteInstances._\n```\n\nThere are also utilities at `buildParser.{ delay, suspend, pure, fromEval, fromEvalParser }` to build generic parsers lazily.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnynek%2Ffastparse-cats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnynek%2Ffastparse-cats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnynek%2Ffastparse-cats/lists"}