Git Product home page Git Product logo

monk's Introduction

monk

This is an attempt at porting the Abbot interface for working with abstract binding trees from SML to Haskell.

It leaves something to be desired in it's current state. I'm still not quite sure how best to represent the abstraction the best in Haskell.

This work is unfinished, and should really just be considered an experiment in it's current state. I have tried reimplementing the Abbot interface in two different ways: one using type classes, and one using ADTs of interface functions.

  • The first try (with type classes) I got stuck and couldn't finish the implementation.

  • The second try is "done" in the sense that it type checks and should work. I haven't tested it, but the logic is just copied from the Abbot implementation, so it's probably correct.

    This implementation ended up not looking like very idiomatic Haskell. See the source yourself, it's pretty wonky looking.

For now, I'll probably just be using Bound for representing binding, because the library seems to be decently popular. Bound seems to be more similar to a pure de Bruijn representation, rather than a locally nameless implementation, but it should be fine.

License

If you end up building on top of this code, please let me know! I'd be curious to see what you come up with.

MIT License

monk's People

Contributors

jez avatar

Watchers

 avatar  avatar  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.