Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#92] Remove -fhide-source-paths for GHC < 8.2 #93

Merged
merged 1 commit into from Jun 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Summoner

1.0.3
=====
* [#92](https://github.com/kowainik/summoner/issues/92):
Remove -fhide-source-paths from generated stack yaml files for
GHC < 8.2

1.0.2
=====

Expand Down
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