on master help sign in
Merge pull request #210 from obsidiansystems/aa-no-devel

Remove skeleton/devel

commit0587d3a24795fda17036083b22e2af1e99079c63 authorRyan Trinkle <ryan.trinkle@gmail.com> dateTue 4 Sep 2018, 09:48 (8 years ago) parentb258b1870e698c
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−