{"id":41999942,"url":"https://github.com/fuselang/fuse","last_synced_at":"2026-04-02T17:17:50.111Z","repository":{"id":78605596,"uuid":"326518061","full_name":"fuselang/fuse","owner":"fuselang","description":"Statically typed functional programming language.","archived":false,"fork":false,"pushed_at":"2026-03-29T00:22:52.000Z","size":388,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T00:56:56.228Z","etag":null,"topics":["functional-programming","plt","scala"],"latest_commit_sha":null,"homepage":"","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/fuselang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-03T23:05:18.000Z","updated_at":"2026-03-29T00:22:47.000Z","dependencies_parsed_at":"2026-01-18T18:02:36.587Z","dependency_job_id":null,"html_url":"https://github.com/fuselang/fuse","commit_stats":null,"previous_names":["fuselang/fuse"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fuselang/fuse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuselang%2Ffuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuselang%2Ffuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuselang%2Ffuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuselang%2Ffuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuselang","download_url":"https://codeload.github.com/fuselang/fuse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuselang%2Ffuse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["functional-programming","plt","scala"],"created_at":"2026-01-26T01:15:07.818Z","updated_at":"2026-04-02T17:17:50.091Z","avatar_url":"https://github.com/fuselang.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Fuse** is a statically typed functional language.\n\n# Features\n\n- Algebraic Data Types (ADT)\n- Generics (Parametric Polymorphism)\n- Type Methods\n- Traits (Type Classes)\n- Pattern Matching\n- Uses [Grin](https://github.com/grin-compiler/grin) as compiler backend\n\n# Installation\n\n```bash\ncurl -fsSL https://fuselang.github.io/fuse/fuseup | sh\n```\n\n# Road-map\n\n- [x] Parser\n- [x] Type Checker for System F with ADT and Pattern Matching\n- [x] Type Error Messages\n- [x] Code Generation to LLVM (without generics)\n- [x] Implement Type Inference for higher order types (Bidirectional)\n- [x] Implement Type Classes\n- [x] Implement `do` notation\n- [x] Code Generation to LLVM with monomorphisation\n- [ ] Add modules \u0026 imports\n\n# Example with [Tree-Sitter](https://github.com/stevanmilic/tree-sitter-fuse)\n\n![fuse](https://user-images.githubusercontent.com/6879030/231895964-3d6e447a-726c-4bfd-9b0a-7785a54d419d.png)\n\n# ADTs (Algebraic Data Types)\n\n## Sum type (Enumeration)\n\n```\ntype bool:\n    true\n    false\n```\n\n## Record (Product type)\n\n```\ntype Point:\n    x: i32\n    y: i32\n```\n\n## Tuple (Product type)\n\n```\ntype Pair(i32, str)\n```\n\n## Generics (parametric polymorphism)\n\n```\ntype Option[T]:\n    None\n    Some(T)\n\ntype Map[K, V]:\n    key: K\n    value: V\n\ntype Data[T](Option[Map[str, T]])\n\ntype Tuple[A, B](A, B)\n```\n\n# Type Methods\n\n```\nimpl Option[T]:\n    fun is_some(self) -\u003e bool\n        match self:\n            Some(_) =\u003e True\n            None =\u003e False\n\nimpl Point:\n    fun distance(self, other: Point) -\u003e f32\n        let x_diff = self.x - other.x\n        let y_diff = self.y - other.y\n        math.sqrt(x_diff * x_diff - y_diff * y_diff)\n```\n\n# Traits (Type Classes)\n\n```\ntrait Monad[A]:\n  fun unit[T](a: T) -\u003e Self[T];\n\n  fun flat_map[B](self, f: A -\u003e Self[B]) -\u003e Self[B];\n\n  fun map[B](self, f: A -\u003e B) -\u003e Self[B]\n    let f = a =\u003e Self::unit(f(a))\n    self.flat_map(f)\n\nimpl Monad for Option[A]:\n  fun unit[T](a: T) -\u003e Option[T]\n    Some(a)\n\n  fun flat_map[B](self, f: A -\u003e Option[B]) -\u003e Option[B]\n    match self:\n      Some(v) =\u003e f(v)\n      _ =\u003e None\n```\n\n# Type Alias\n\n```\ntype Ints = List[i32]\n```\n\n# Expressions\n\n## Operators\n\n```\n1 + 1\n# output: 2 (i32)\n\n2 - 1\n# output: 1 (i32)\n\n\"Hello \" + \" World\"\n# output: \"Hello World\" (str)\n\n1 == 2\n# output: false (bool)\n\n# comparison and equality\nless \u003c than\nless_than \u003c= or_equal\ngreater \u003e then\ngreaterThan \u003e= orEqual\n```\n\n## Let expression\n\n```\nlet x = 5\nlet y = x + 1\n\nlet m = Some(5)\n```\n\n## Match expression\n\n```\nlet x = 2\n\nmatch x:\n    1 =\u003e \"one\"\n    2 =\u003e \"two\"\n    _ =\u003e \"whatever\"\n\nlet m = Some(5)\nmatch m:\n    Some(v) =\u003e v + 1\n    None =\u003e 0\n```\n\n# Functions\n\n```\nfun sum(x: i32, y: i32) -\u003e i32\n    x + y\n\nsum(5, 3)\n```\n\n## Recursive Functions\n\n```\nfun fib(n: i32, a: i32, b: i32) -\u003e i32\n    match n:\n        0 =\u003e b\n        _ =\u003e fib(n - 1, b, a + b)\n```\n\n## Lambda Functions\n\n```\nlet f = a =\u003e a + 1\n\nlet g = (x, y) =\u003e x + y\n\nlet f_annotated: i32 = (a: i32) -\u003e i32 =\u003e a + 1\n```\n\n\n## Do Notation\n\n```\nlet x = Some(1)\nlet y = Some(2)\nlet z = Some(3)\ndo:\n    i \u003c- x\n    j \u003c- y\n    k \u003c- z\n    i + j + k\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuselang%2Ffuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuselang%2Ffuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuselang%2Ffuse/lists"}