Skip to content

forked, it's pretty crusty but can at least find modules

License

Notifications You must be signed in to change notification settings

MarcelineVQ/atom-language-idris

 
 

Repository files navigation

This is no longer being maintained as atom is becoming hard to build on my system. I've moved to vscode with idris2 LSP despite it having a slightly less convenient interface.

======================================================

This is specifically an idris2 compatability branch.

======================================================

An Idris Mode for Atom

A work-in-progress Idris Mode for Atom.

It supports:

  • Typechecking (ctrl-alt-r)
    • compiles the file and reports errors
  • Case-splitting (ctrl-alt-c)
    • split a variable which can be pattern matched
  • Clause-adding (ctrl-alt-a)
    • add a clause to a function
  • Proof-search (ctrl-alt-s)
    • search for a proof of a hole
  • Showing the types of a variable (ctrl-alt-t)
    • show the type of a hole
  • Show the doc for a function (ctrl-alt-d)
  • make-with (ctrl-alt-w)
    • add further variables on the left hand side of a function
  • make-case (ctrl-alt-m)
  • make-lemma (ctrl-alt-l)
    • lift a hole into a function context
  • Add proof case (ctrl-alt-p)
  • Browse namespace (ctrl-alt-b)
    • select the name of a namespace beforehand
  • Showing holes
  • ipkg highlighting
  • REPL (ctrl-alt-enter)
  • Apropos view

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

Development

see the Development Guide

About

forked, it's pretty crusty but can at least find modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 98.7%
  • Less 1.3%