diff options
Diffstat (limited to 'CabalHelper')
-rw-r--r-- | CabalHelper/Compile.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CabalHelper/Compile.hs b/CabalHelper/Compile.hs index 4d14dce..0de69b8 100644 --- a/CabalHelper/Compile.hs +++ b/CabalHelper/Compile.hs @@ -69,7 +69,10 @@ compileHelper opts cabalVer projdir distdir = withHelperSources $ \chdir -> do , cachedCabalPkg chdir , MaybeT (Just <$> compilePrivatePkgDb chdir) ] - mdb -> compileWithPkg chdir mdb cabalVer + mdb -> + run [ Right <$> MaybeT (cachedExe cabalVer) + , liftIO $ compileWithPkg chdir mdb cabalVer + ] where run actions = fromJust <$> runMaybeT (msum actions) |