• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

ocaml-merlin

Linting, autocompletion, type checking, refactoring and code navigation for Ocaml/Reason with Merlin.
  • #linter
  • #autocomplete
  • #goto
  • #ocaml
  • #merlin
atom-ocaml
0.14.7 23,605
12
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

ocaml-merlin

Use ocamlmerlin to autocomplete, lint, refactor and navigate your OCaml/Reason code in Atom.

Note: Although this package is still working, ide-reason provides better OCaml support.

Features

  • Context-sensitive autocompletion and linting
  • Show the type of expressions under the cursor
  • Find all occurrences of a variable
  • Jump to (type) declarations and back
  • Shrink and grow selections in a smart way
  • Rename all occurrences of a variable in a file
  • Destruct expressions in pattern matchings

Usage

Linting is performed on save or while typing by linter. Autocompletion is performed on the fly by autocomplete-plus.

No default keybindings are provided, except those compatible with the symbols-view package. Additional keybindings can be set in your keymap.

Command Description Keybinding (Linux, Windows) Keybinding (OS X)
ocaml-merlin:toggle-type Toggle type of expression under cursor
ocaml-merlin:shrink-type Shrink the expression
ocaml-merlin:expand-type Expand the expression
ocaml-merlin:destruct Destruct expression under cursor
ocaml-merlin:next-occurrence Find next occurrence of expression
ocaml-merlin:previous-occurrence Find previous occurrence of expression
ocaml-merlin:go-to-declaration Go to declaration of expression ctrl-alt-down cmd-alt-down
ocaml-merlin:go-to-type-declaration Go to type declaration of expression
ocaml-merlin:return-from-declaration Go back to expression ctrl-alt-up cmd-alt-up
ocaml-merlin:shrink-selection Shrink the current selection
ocaml-merlin:expand-selection Expand the current selection
ocaml-merlin:rename-variable Rename all occurrences of variable

Installation

This package requires language-ocaml, linter and ocamlmerlin. For auto-indenting destructed patterns, ocaml-indent is needed. For Reason support, language-reason is needed, and reason-refmt is recommended.

apm install language-ocaml linter ocaml-indent
opam install merlin

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by