Skip to content

jeremy-w/atom-language-idris

 
 

Repository files navigation

An Idris Mode for Atom

A work-in-progress Idris Mode for Atom.

It supports:

  • Typechecking (ctrl-alt-r)
  • Case-splitting (ctrl-alt-c)
  • Clause-adding (ctrl-alt-a)
  • Proof-search (ctrl-alt-s)
  • Showing the types of a variable (ctrl-alt-t)
  • Show the doc for a variable (ctrl-alt-d)
  • make-with (ctrl-alt-w)
  • make-case (ctrl-alt-m)
  • make-lemma (ctrl-alt-l)
  • Showing holes
  • ipkg highlighting

Usage

The package should work after installation. The only thing you might need to set is the path to the idris executable in the config of this package. If it doesn't work it's probably a bug.

There is a tutorial on how to use the editor under documentation/tutorial.md.

Working with ipkg files

Place your ipkg file in the top level directory of your project. There is more information available in a in a separate documentation.

Todo

  • Add better support for drawing attention to error-messages
  • Improve the syntax-highlighting (the current is based on the Sublime plugin)
  • Add autocompletion
  • Add a REPL
  • ...

Development

To work on this plugin you need to clone it into your atom directory and rename the folder to language-idris or the package settings won't get picked up. Then you need an apm install from the language-idris folder to install the dependencies.

Or you can execute apm dev language-idris. This will install the package in a separate directory and you need to start Atom in dev-mode to load the development packages.

About

A Idris Mode for Atom.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 99.7%
  • CSS 0.3%