" 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