blob: c622eb381dfe9cdfae0778f96cfe70096462443f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
" Haskell related configs.
" Last Changed: 2019-01-27
" Author: Federico Igne <>
" License: This file is placed in the public domain.
" Set specific option to be used with `gf` or include search
" functionalities (`:h include-search`, `:h gf`).
if has('find_in_path') && has('file_in_path')
" Define import Haskell syntax.
setlocal include=^\\s*import\\s*\\(qualified\\)\\?\\s*
" If the file matched cannot be found, this option is used to modify
" the name (and a second attempt is performed).
setlocal includeexpr=substitute(v:fname,'\\.','/','g').'.'
" Suffixes to be added to the file name during the search.
setlocal suffixesadd=hs,lhs,hsc
endif
" Set default compiler to stack.
" NOTE: might want something more elaborated in the future.
setlocal makeprg=stack\ build
|