about summary refs log tree commit diff
path: root/users/aspen/emacs/snippets/haskell-mode/hedgehog-generator
diff options
context:
space:
mode:
Diffstat (limited to 'users/aspen/emacs/snippets/haskell-mode/hedgehog-generator')
-rw-r--r--users/aspen/emacs/snippets/haskell-mode/hedgehog-generator8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/aspen/emacs/snippets/haskell-mode/hedgehog-generator b/users/aspen/emacs/snippets/haskell-mode/hedgehog-generator
new file mode 100644
index 000000000000..68863f70542b
--- /dev/null
+++ b/users/aspen/emacs/snippets/haskell-mode/hedgehog-generator
@@ -0,0 +1,8 @@
+# key: gen
+# name: Hedgehog Generator
+# expand-env: ((yas-indent-line (quote fixed)))
+# --
+gen${1:Foo} :: Gen $1
+gen$1 = do
+  $2
+  pure $1{..}
\ No newline at end of file