summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/scala-mode/match.can
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/snippets/text-mode/scala-mode/match.can11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/scala-mode/match.can b/emacs.d/snippets/text-mode/scala-mode/match.can
new file mode 100644
index 0000000..77d475b
--- /dev/null
+++ b/emacs.d/snippets/text-mode/scala-mode/match.can
@@ -0,0 +1,11 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : can match { case Full(res) => .. }
+# --
+${1:option} match {
+ case Full(res) => $0
+
+ case Empty =>
+
+ case Failure(msg, _, _) =>
+
+} \ No newline at end of file