Code Monkey home page Code Monkey logo

h-atom's Introduction

h-atom package

This package is an attempt to recreate the functionality provided by the destruct command of the Merlin plugin for Vi/Emacs.

What It Does

Suppose you have an ADT definition in a file. While defining a function that takes the ADT as an input, you would normally have to pattern match all the cases yourself.

The Destruct functionality of H-Atom would create all these function stubs for you.

It also works when you are working on an already existing ADT. Suppose you extended an existing ADT to add two more definitions. You would have to go through all the functions defined on that type, adding definitions for each function. But using Destruct, all you need to do is press Ctrl-Atl-o, and it will automatically add stubs for the missing clauses.

Dependencies

This package is not dependent on any other package.

Assumptions

  1. All functions have type definitions. Even functions not defined using 'where' or 'let'.

Support

Currently this functionality is limited to ADTs defined within the same file that is being worked upon. Also, case statements are not supported.

Future Support

  1. Case Statements.
  2. ADTs defined in other files and other modules.

Images

Before: Preview

After: Preview

Preview

h-atom's People

Contributors

ohri-anurag avatar

Watchers

James Cloos avatar Andrew Condon avatar  avatar

h-atom's Issues

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.