Sanchayan Maity
a5792a3f3a
Neovim has a "stack" compiler file but this does not seem to work, at least not in the shitty monorepo I am working on. Someone provided a solution on Reddit which uses a custom compiler file and has been modified to work on modules. Which is also perhaps why it doesn't work in the monorepo project at work. https://www.reddit.com/r/neovim/comments/es8wn7/haskell_makeprg_for_stack_build/ https://github.com/maxigit/vimrc/tree/2020/compiler Use them and tie it up with Neomake! change. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
21 lines
349 B
VimL
21 lines
349 B
VimL
" Vim compiler file
|
|
" Compiler: Haskell repl - ghci
|
|
" Author: Maxime Bourget
|
|
|
|
if exists("current_compiler")
|
|
finish
|
|
endif
|
|
let current_compiler="ghci"
|
|
" inherit from stack settings
|
|
" compiler stack
|
|
|
|
let s:cpo_save = &cpo
|
|
set cpo&vim
|
|
|
|
CompilerSet makeprg=stack\ repl
|
|
|
|
CompilerSet errorformat+=%f:%.%l%.%c%.%#
|
|
|
|
let &cpo = s:cpo_save
|
|
unlet s:cpo_save
|