Skip to content

Instantly share code, notes, and snippets.

@kozross
Created December 13, 2017 04:54
Show Gist options
  • Save kozross/d0cf1846c0be8c60bd2b2fb606a5ad85 to your computer and use it in GitHub Desktop.
Save kozross/d0cf1846c0be8c60bd2b2fb606a5ad85 to your computer and use it in GitHub Desktop.
Haskell setup
augroup ghciMaps
au!
au FileType haskell nnoremap <silent> <leader>gs :GhciStart<CR>
au FileType haskell nnoremap <silent> <leader>gk :GhciKill<CR>
au FileType haskell nnoremap <silent> <leader>gr :GhciRestart<CR>
au FileType haskell nnoremap <silent> <leader>go :GhciOpen<CR>
au BufWritePost *.hs GhciReload
au BufWritePost *.hs GhciReload
let g:ghci_command = 'stack repl'
let g:ghci_command_line_options = '--ghci-options="-fobject-code -Wall"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment