GithubHelp home page GithubHelp logo

isabella232 / agda2hs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agda/agda2hs

0.0 0.0 0.0 1.61 MB

Compiling Agda code to readable Haskell

License: MIT License

Haskell 44.06% Agda 54.71% Nix 0.57% Makefile 0.66%

agda2hs's Introduction

GitHub CI

agda2hs

The goal of this project is not to translate Agda code to Haskell. Rather it is to carve out a common sublanguage between Agda and Haskell, with a straightforward translation from the Agda side to the Haskell side. This lets you write your program in the Agda fragment, using full Agda to prove properties about it, and then translate it to nice looking readable Haskell code that you can show your Haskell colleagues without shame.

See test/Test.agda for an example.

Future work

  • Compile lambdas #5
  • Sections #21
  • Compile if/then/else #13
  • Literals in patterns
  • Use some Haskell syntax ADT and a proper pretty printing library #4
  • Map instance arguments to Haskell type classes (definitions and use) #3
  • where clauses #23
  • Higher-rank polymorphism
  • More builtin types (Double, Word64) #12
  • Strings
  • Compile case_of_ λ where to Haskell case
  • with?
  • Compile equality proofs to QuickCheck properties?
  • Module export lists (how?)
  • Fixity declarations

agda2hs's People

Contributors

andreasabel avatar dxts avatar flupe avatar jespercockx avatar jmchapman avatar omelkonian avatar ulfnorell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.