Skip to content
run yesod in ghci using vim-addon-async. Provide :Yesod command to reload code fast
VimL
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
autoload
plugin
README
addon-info.json

README

run yesod applictaion using ghci using cabal-ghci

Don't use yesod server - because we want to put errros into quickfix

BUGS:
- flickers if the buf window is not "visible"
- vim ocassionally segfaults (vim-addon-async or vim issue)

requires this cabal-ghci main file adding --cabal-ghci-print-ghci-args command line argument:

  module Main where

  import Distribution.Dev.Interactive

  import System.Environment
  import System.Process

  main = do
    args ← getArgs
    case args of
      ("--cabal-ghci-print-ghci-args":as) -> 
        withOpts as putStrLn $ \opts → mapM_ putStrLn opts
      _ -> withOpts args putStrLn $ 
                \opts → do
                  putStrLn $ "Executing ghci with the following options: " ++ unwords opts
                  rawSystem "ghci" opts >> return ()
Something went wrong with that request. Please try again.