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

Commit

Permalink
in ExplicitProject, add db stack options generated from ghc-mod.packa…
Browse files Browse the repository at this point in the history
…ge-db-stack file
  • Loading branch information
alang9 authored and Mitsutoshi Aoe committed Aug 2, 2016
1 parent 2ce8c98 commit 23e5f88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Language/Haskell/GhcMod/Target.hs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ targetGhcOptions crdl sefnmn = do

case cradleProject crdl of
proj | isCabalHelperProject proj -> cabalOpts crdl
ExplicitProject -> explicitOpts crdl
ExplicitProject -> do
opts <- explicitOpts crdl
dbStack <- maybe [] id <$> getCustomPkgDbStack
return $ opts ++ ghcDbStackOpts dbStack
_ -> sandboxOpts crdl
where
zipMap f l = l `zip` (f `map` l)
Expand Down

0 comments on commit 23e5f88

Please sign in to comment.