view .emacs.d/haskell-mode/snippets/haskell-mode/data.record @ 0:2764b4f45f9f

1st commit
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Mon, 21 Apr 2014 04:30:59 +0900
parents
children
line wrap: on
line source

# -*- 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})}