From 29c7632fd278e6d4228290956534a1195c488fad Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 18 Sep 2018 10:18:20 -0400 Subject: Misc haskell stuff, snippets, etc --- snippets/haskell-mode/annotation | 5 +++++ snippets/haskell-mode/import-i | 4 ++++ snippets/haskell-mode/inl | 6 ++++++ snippets/haskell-mode/inline | 5 +++++ snippets/haskell-mode/language pragma | 6 ++++++ snippets/haskell-mode/shut up, hlint | 6 ++++++ 6 files changed, 32 insertions(+) create mode 100644 snippets/haskell-mode/annotation create mode 100644 snippets/haskell-mode/import-i create mode 100644 snippets/haskell-mode/inl create mode 100644 snippets/haskell-mode/inline create mode 100644 snippets/haskell-mode/language pragma create mode 100644 snippets/haskell-mode/shut up, hlint (limited to 'snippets/haskell-mode') diff --git a/snippets/haskell-mode/annotation b/snippets/haskell-mode/annotation new file mode 100644 index 000000000000..8a2854d759df --- /dev/null +++ b/snippets/haskell-mode/annotation @@ -0,0 +1,5 @@ +# key: ann +# name: annotation +# expand-env: ((yas-indent-line 'fixed)) +# -- +{-# ANN ${1:module} ("${2:HLint: ignore ${3:Reduce duplication}}" :: String) #-} \ No newline at end of file diff --git a/snippets/haskell-mode/import-i b/snippets/haskell-mode/import-i new file mode 100644 index 000000000000..4a7fca2c2fd6 --- /dev/null +++ b/snippets/haskell-mode/import-i @@ -0,0 +1,4 @@ +# key: i +# name: import-i +# -- +import ${1:Prelude} \ No newline at end of file diff --git a/snippets/haskell-mode/inl b/snippets/haskell-mode/inl new file mode 100644 index 000000000000..6e17b83d7114 --- /dev/null +++ b/snippets/haskell-mode/inl @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: inl +# key: inl +# expand-env: ((yas-indent-line 'fixed)) +# -- +{-# INLINE $1 #-} \ No newline at end of file diff --git a/snippets/haskell-mode/inline b/snippets/haskell-mode/inline new file mode 100644 index 000000000000..1beafbe50b56 --- /dev/null +++ b/snippets/haskell-mode/inline @@ -0,0 +1,5 @@ +# key: inline +# name: inline +# expand-env: ((yas-indent-line 'fixed)) +# -- +{-# INLINE $1 #-} \ No newline at end of file diff --git a/snippets/haskell-mode/language pragma b/snippets/haskell-mode/language pragma new file mode 100644 index 000000000000..6f84720f4511 --- /dev/null +++ b/snippets/haskell-mode/language pragma @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: language pragma +# key: lang +# expand-env: ((yas-indent-line 'fixed)) +# -- +{-# LANGUAGE $1 #-} \ No newline at end of file diff --git a/snippets/haskell-mode/shut up, hlint b/snippets/haskell-mode/shut up, hlint new file mode 100644 index 000000000000..fccff1d66f29 --- /dev/null +++ b/snippets/haskell-mode/shut up, hlint @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: shut up, hlint +# key: dupl +# expand-env: ((yas-indent-line 'fixed)) +# -- +{-# ANN module ("HLint: ignore Reduce duplication" :: String) #-} \ No newline at end of file -- cgit 1.4.1