diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-21 14:56:42 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-21 14:56:42 -0400 |
commit | c6aa42773a17d53b4572488967b99666ab97ef97 (patch) | |
tree | 8ba4a4071c3a8941e7d851ad80d48cee9c3f71bd /library/ace/snippets/haskell.js | |
parent | 4979a451207c7072785c114a09fdd394f2a97734 (diff) | |
download | volse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.tar.gz volse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.tar.bz2 volse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.zip |
Trying to fix wiki branch starting fresh from dev
Diffstat (limited to 'library/ace/snippets/haskell.js')
-rw-r--r-- | library/ace/snippets/haskell.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/ace/snippets/haskell.js b/library/ace/snippets/haskell.js new file mode 100644 index 000000000..69c2ef80b --- /dev/null +++ b/library/ace/snippets/haskell.js @@ -0,0 +1 @@ +ace.define("ace/snippets/haskell",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet lang\n {-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n -- |\n -- Module : ${1:Module.Namespace}\n -- Copyright : ${2:Author} ${3:2011-2012}\n -- License : ${4:BSD3}\n --\n -- Maintainer : ${5:email@something.com}\n -- Stability : ${6:experimental}\n -- Portability : ${7:unknown}\n --\n -- ${8:Description}\n --\nsnippet import\n import ${1:Data.Text}\nsnippet import2\n import ${1:Data.Text} (${2:head})\nsnippet importq\n import qualified ${1:Data.Text} as ${2:T}\nsnippet inst\n instance ${1:Monoid} ${2:Type} where\n ${3}\nsnippet type\n type ${1:Type} = ${2:Type}\nsnippet data\n data ${1:Type} = ${2:$1} ${3:Int}\nsnippet newtype\n newtype ${1:Type} = ${2:$1} ${3:Int}\nsnippet class\n class ${1:Class} a where\n ${2}\nsnippet module\n module `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n ) where\n `expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\nsnippet const\n ${1:name} :: ${2:a}\n $1 = ${3:undefined}\nsnippet fn\n ${1:fn} :: ${2:a} -> ${3:a}\n $1 ${4} = ${5:undefined}\nsnippet fn2\n ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n $1 ${5} = ${6:undefined}\nsnippet ap\n ${1:map} ${2:fn} ${3:list}\nsnippet do\n do\n \nsnippet \u03bb\n \\${1:x} -> ${2}\nsnippet \\\n \\${1:x} -> ${2}\nsnippet <-\n ${1:a} <- ${2:m a}\nsnippet \u2190\n ${1:a} <- ${2:m a}\nsnippet ->\n ${1:m a} -> ${2:a}\nsnippet \u2192\n ${1:m a} -> ${2:a}\nsnippet tup\n (${1:a}, ${2:b})\nsnippet tup2\n (${1:a}, ${2:b}, ${3:c})\nsnippet tup3\n (${1:a}, ${2:b}, ${3:c}, ${4:d})\nsnippet rec\n ${1:Record} { ${2:recFieldA} = ${3:undefined}\n , ${4:recFieldB} = ${5:undefined}\n }\nsnippet case\n case ${1:something} of\n ${2} -> ${3}\nsnippet let\n let ${1} = ${2}\n in ${3}\nsnippet where\n where\n ${1:fn} = ${2:undefined}\n",t.scope="haskell"})
\ No newline at end of file |