about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/snippets/haskell-mode/hedgehog-generator
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/emacs.d/snippets/haskell-mode/hedgehog-generator')
-rw-r--r--users/glittershark/emacs.d/snippets/haskell-mode/hedgehog-generator8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/snippets/haskell-mode/hedgehog-generator b/users/glittershark/emacs.d/snippets/haskell-mode/hedgehog-generator
new file mode 100644
index 000000000000..68863f70542b
--- /dev/null
+++ b/users/glittershark/emacs.d/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