Home

Awesome

Elm snippets for Atom

Adding some shortcut sugar to your day-by-day programming in Elm on Atom.

Disclaimer: this package is in early stage. I'm not covering all the possible scenarios, but the most ones used by me. Feel free to PR!

Install

apm install elm-snippets

Snippets

Write the prefixes below and press the Tab key and you're good to go.

[mod]

module <name> (..) where

[imp]

import <name>

[impas]

import <name> as <alias>

[impea]

import <name> exposing (..)

[ta]

type alias <name> =
  <something>

[str]

String

[sig]

Signal

[sigma]

Signal.map <(a -> b)> <Signal a>

[sigmb]

Signal.mailbox ""

[cof]

case <something> of
  <Condition> ->
    <action>