{"id":20637027,"url":"https://github.com/ners/inline-rust","last_synced_at":"2025-04-15T21:48:55.141Z","repository":{"id":261158143,"uuid":"883363604","full_name":"ners/inline-rust","owner":"ners","description":"🦥🤝🦀 Write inline Rust snippets in Haskell.","archived":false,"fork":false,"pushed_at":"2025-02-23T20:30:48.000Z","size":345,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T21:48:50.664Z","etag":null,"topics":["ffi","haskell","rust"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/ners.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T20:46:06.000Z","updated_at":"2024-11-24T22:25:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"266f9efa-0337-4384-a296-41655f873f63","html_url":"https://github.com/ners/inline-rust","commit_stats":null,"previous_names":["ners/inline-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ners%2Finline-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ners%2Finline-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ners%2Finline-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ners%2Finline-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ners","download_url":"https://codeload.github.com/ners/inline-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249161104,"owners_count":21222468,"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":["ffi","haskell","rust"],"created_at":"2024-11-16T15:12:48.173Z","updated_at":"2025-04-15T21:48:55.123Z","avatar_url":"https://github.com/ners.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inline-rust\n\nThis package allows you to write Rust inline in your Haskell source using\nquasiquotes. Here is a short example. For more examples, check out the\n[examples](examples) directory.\n\n```haskell\n-- examples/Hello.hs\n{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}\n\nmodule Main where\n\nimport Language.Rust.Inline\nimport Data.Int\n\nextendContext basic\nsetCrateRoot []\n\nmain = do\n  putStrLn \"Haskell: Hello. Enter a number:\"\n  x \u003c- readLn\n  y \u003c- [rustIO| i32 {\n    let x = $(x: i32);\n    println!(\"Rust: Your number is {}\", x);\n    x + 1\n  } |]\n  putStrLn $ \"Haskell: Rust says number plus 1 is \" ++ show y\n\n```\n\nIf you want to use this with GHCi, make sure to pass in `-fobject-code`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fners%2Finline-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fners%2Finline-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fners%2Finline-rust/lists"}