on master help sign in
Remove skeleton/devel
commit70e698c8be7d11e7d30c53dee5c2cc7246a5435a authorAli Abrar <aliabrar@gmail.com> dateSun 2 Sep 2018, 11:35 (8 years ago) parentb3d9a9b
2 files changed+5−12
lib/command/src/Obelisk/Command/Run.hs+5−2 skeleton/devel/Devel.hs−10
lib/command/src/Obelisk/Command/Run.hs+5−2
@@ -38,7 +38,7 @@ run = do
3838 pkgs <- getLocalPkgs
3939 withGhciScript pkgs $ \dotGhciPath -> do
4040 freePort <- getFreePort
41− runGhcid dotGhciPath $ Just $ unwords ["main", show freePort]
41+ runGhcid dotGhciPath $ Just $ unwords ["run", show freePort, "Backend.backend", "Frontend.frontend"]
4242
4343runRepl :: MonadObelisk m => m ()
4444runRepl = do
@@ -98,7 +98,10 @@ withGhciScript pkgs f = do
9898
9999 let dotGhci = unlines
100100 [ ":set -i" <> intercalate ":" (mconcat hsSrcDirs)
101− , ":load ./devel/Devel.hs" -- TODO more robust filepath
101+ , ":load Backend Frontend"
102+ , "import Obelisk.Run"
103+ , "import qualified Frontend"
104+ , "import qualified Backend"
102105 ]
103106 withSystemTempDirectory "ob-ghci" $ \fp -> do
104107 let dotGhciPath = fp </> ".ghci"
skeleton/devel/Devel.hsdeleted−10
@@ -1,10 +0,0 @@
1−module Devel where
2−
3−import Obelisk.Run
4−
5−import Backend
6−import Frontend
7−
8−main :: Int -> IO ()
9−main port = run port backend frontend
10−