{"id":19362670,"url":"https://github.com/imdea-software/hs-to-ciao","last_synced_at":"2026-05-18T07:06:10.169Z","repository":{"id":79163326,"uuid":"270008084","full_name":"imdea-software/hs-to-ciao","owner":"imdea-software","description":"Source-to-source Haskell into Ciao Prolog for automatic resource analysis.","archived":false,"fork":false,"pushed_at":"2020-07-29T11:00:22.000Z","size":396,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-06T20:33:24.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imdea-software.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-06T14:36:05.000Z","updated_at":"2023-06-13T22:31:35.000Z","dependencies_parsed_at":"2023-06-29T18:15:38.508Z","dependency_job_id":null,"html_url":"https://github.com/imdea-software/hs-to-ciao","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdea-software%2Fhs-to-ciao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdea-software%2Fhs-to-ciao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdea-software%2Fhs-to-ciao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdea-software%2Fhs-to-ciao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imdea-software","download_url":"https://codeload.github.com/imdea-software/hs-to-ciao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483782,"owners_count":19808632,"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-11-10T07:29:51.818Z","updated_at":"2026-05-18T07:06:05.121Z","avatar_url":"https://github.com/imdea-software.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"500\" height=\"200\" src=\"hs-to-ciao-logo.svg\"\u003e\n\u003c/p\u003e\n\n[![Build Status](https://travis-ci.com/imdea-software/hs-to-ciao.svg?branch=master)](https://travis-ci.com/imdea-software/hs-to-ciao)\n\n# hs-to-ciao\nTranslate [Haskell](https://www.haskell.org/) code to [Ciao](http://ciao-lang.org/) for automatic resource analysis, implemented as a [ghc-plugin](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/extending_ghc.html#compiler-plugins).\n\n# Installation\nThe easiest way to install the plugin is by using [Stack](https://docs.haskellstack.org/en/stable/README/).\nIn most Unix-like systems (e.g. macOS and Linux based), running the following command should be enough:\n\n```\ncurl -sSL https://get.haskellstack.org/ | sh\n```\n\nAfter installing it, clone this repository somewhere, and simply run `stack build` inside the repository folder.\n\nThe plugin is tested for GHC versions `8.6.5`, `8.8.1`, `8.8.2`, `8.8.3` and `8.10.1`. Older or newer versions _might not_ work.\nAlso, an installation through [Cabal](https://www.haskell.org/cabal/) hasn't been actively tested.\n\nIf you just want to translate Haskell into Ciao, having installed the plugin is enough.\nHowever, if you intend on using the resource analysis capabilities,\nyou will need a working Ciao installation, \nas well as the `ciaopp` and `ciaopp_extra` bundles. \nSince these bundles are provided _on demand_,\nyou should ask the [CLIP Lab](https://cliplab.org/Software/index.html) staff for access and support,\nsince they are the ones responsible for Ciao's development.\n\n# Usage\n\nAdd the `-fplugin=HsToCiaoPP` option when compiling a Haskell source from GHC.\nFor example, let's say you want to translate `examples/ListReverse.hs`. Then, run:\n\n\n```\nstack exec -- ghc -fplugin=HsToCiaoPP examples/ListReverse.hs\n```\n\nYou will be prompted to select between several kinds of resource analysis (right now, only Big-O analysis is supported).\nAfter choosing one, both the Ciao translation of the original Haskell source and the results of the analysis\nwill be written in the `out/` folder (in this example, `out/listreverse.pl` and `out/listreverse_big-o.txt`).\n\n# Detailed explanation of the plugin\n\nThe details of the project are explained thoroughly in [my](https://davidmazarro.com/) bachelor's thesis, which you can read [here](http://oa.upm.es/63139/1/TFG_DAVID_MUNUERA_MAZARRO.pdf).\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdea-software%2Fhs-to-ciao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimdea-software%2Fhs-to-ciao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdea-software%2Fhs-to-ciao/lists"}