Skip to content

Commit

Permalink
[#92] Remove -fhide-source-paths for GHC < 8.2
Browse files Browse the repository at this point in the history
Fixes #92
  • Loading branch information
adituv committed Jun 11, 2018
1 parent bb0b491 commit 997198a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Summoner/Template.hs
Expand Up @@ -438,15 +438,22 @@ createStackTemplate ProjectData{..} = Dir (toString repo) $

$extraDeps

ghc-options:
"$$locals": -fhide-source-paths
$ghcOpts
$endLine
|]
where
extraDeps :: Text
extraDeps = case prelude of
Nothing -> ""
Just _ -> "extra-deps: [base-noprelude-" <> baseVer <> "]"
ghcOpts :: Text
ghcOpts = if ghcV <= Ghc802 then
""
else
[text|
ghc-options:
"$$locals": -fhide-sourcepaths
|]


-- create appveyor.yml template
Expand Down

0 comments on commit 997198a

Please sign in to comment.