summaryrefslogtreecommitdiffstats
path: root/syntax/haskell.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/haskell.vim')
-rw-r--r--syntax/haskell.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/haskell.vim b/syntax/haskell.vim
index 4f25ed8b..0171244b 100644
--- a/syntax/haskell.vim
+++ b/syntax/haskell.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'syntax/haskell.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
" syntax highlighting for haskell
"
@@ -215,5 +210,3 @@ if get(g:, 'haskell_backpack', 0)
highlight def link haskellBackpackDependency Include
endif
let b:current_syntax = "haskell"
-
-endif