Files
dotfiles/.emacs.d/elpa/haskell-mode-13.12/snippets/haskell-mode/data.record
2015-05-27 18:47:14 +02:00

10 lines
277 B
Plaintext

# -*- mode: snippet -*-
# key: data
# name: record data
# condition: (= (length "data") (current-column))
# contributor: Luke Hoersten <luke@hoersten.org>
# --
data ${1:Type} = $1
{ ${2:field} :: ${3:Type}
, ${4:field} :: ${5:Type}$0
} ${6:deriving (${7:Show, Eq})}