Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Commit

Permalink
Fix compilation with cabal-helper-0.8
Browse files Browse the repository at this point in the history
Still need to integrate logic changes for backpack etc.
  • Loading branch information
DanielG committed Jan 21, 2018
1 parent c3530f7 commit b52085a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/GhcMod/Target.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ initSession opts mdf = do
putNewSession s = do
crdl <- cradle
nhsc_env_ref <- liftIO . newIORef =<< newLightEnv (initDF crdl)
runLightGhc' nhsc_env_ref $ setSessionDynFlags =<< getSessionDynFlags
_ <- runLightGhc' nhsc_env_ref $ setSessionDynFlags =<< getSessionDynFlags
gmsPut s { gmGhcSession = Just $ GmGhcSession nhsc_env_ref }


Expand Down Expand Up @@ -367,7 +367,7 @@ resolveEntrypoint Cradle {..} c@GmComponent {..} = do
-- ghc do the warning about it. Right now we run that module through
-- resolveModule like any other
resolveChEntrypoints :: FilePath -> ChEntrypoint -> IO [CompilationUnit]
resolveChEntrypoints _ (ChLibEntrypoint em om) =
resolveChEntrypoints _ (ChLibEntrypoint em om _) =
return $ map (Right . chModToMod) (em ++ om)

resolveChEntrypoints _ (ChExeEntrypoint main om) =
Expand Down

0 comments on commit b52085a

Please sign in to comment.