atom-haskell-archive / autocomplete-haskell

Atom autocomplete-plus provider for haskell
https://atom.io/packages/autocomplete-haskell
MIT License
23 stars 1 forks source link

Typing "fun" to generate functions skeleton #19

Closed andregpss closed 7 years ago

andregpss commented 7 years ago

Sorry for posting this as an issue. I did not see another proper place.

My question is: on the first gif (autocomplete), when the keyword "fun" is typed the function skeleton is generated. How can i do this?

lierdakil commented 7 years ago

That's a snippet. Snippets are defined by language-haskell package (which is a dependency, so you should have that installed).

To expand a snippet, issue snippets:expand command. It's bound to tab by default. You can also choose the snippet in autocompletion list (it pops up automatically by default, or you can press ctrl+space): image

andregpss commented 7 years ago

Thanks. It is working!