summaryrefslogtreecommitdiff
path: root/snippets/purescript.snippets
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-30 16:06:22 +0100
commitf1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch)
treebbe77eacaef8ab8a5999e517c3006973c9e3e44c /snippets/purescript.snippets
parent823302458ec6c53455a3f34674415c43ce6a3187 (diff)
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'snippets/purescript.snippets')
-rw-r--r--snippets/purescript.snippets71
1 files changed, 0 insertions, 71 deletions
diff --git a/snippets/purescript.snippets b/snippets/purescript.snippets
deleted file mode 100644
index 3e3a5bd..0000000
--- a/snippets/purescript.snippets
+++ /dev/null
@@ -1,71 +0,0 @@
-snippet mod
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')`
- (
- ) where
-
- import Prelude
-
- ${0}
-snippet imp
- import ${0:Data.List}
-snippet impq
- import ${1:Data.List} as ${0:List}
-snippet fn0
- ${1:name} :: ${2:a}
- $1 = ${0:undefined}
-snippet fn
- ${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4}= ${0}
-snippet fn1
- ${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4}= ${0}
-snippet fn2
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5}= ${0}
-snippet fn3
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
- $1 ${6}= ${0}
-snippet case
- case ${1} of
- ${2} -> ${0}
-snippet let
- let
- ${1} = ${2}
- in
- ${3}
-snippet where
- where
- ${1} = ${0}
-snippet testunit
- module Test.Main where
-
- import Prelude
- import Test.Unit (suite, test)
- import Test.Unit.Main (runTest)
- import Test.Unit.Assert as Assert
-
- main = runTest do
- suite "${1}" do
- test "${2:the tests run}" do
- Assert.equal
- "Hello, world!"
- "Hello, sailor!"
-snippet if
- if ${1} then
- ${2:${VISUAL}}
- else
- ${0}
-snippet doc
- {-| ${0}
- -}
-snippet ty
- type ${1:Type} =
- ${0}
-snippet da
- data ${1:Type} =
- ${0:$1}
-snippet nty
- newtype ${1:Type} =
- ${2:$1} ${0:Int}
-snippet fi
- foreign import ${1} :: ${2}