about summary refs log blame commit diff
path: root/snippets/haskell-mode/hedgehog-generator
blob: 68863f70542bc9e6ba1decba7cf85d8d1508c5b1 (plain) (tree)
1
2
3
4
5
6
7
8







                                               
# key: gen
# name: Hedgehog Generator
# expand-env: ((yas-indent-line (quote fixed)))
# --
gen${1:Foo} :: Gen $1
gen$1 = do
  $2
  pure $1{..}