Correctly reverse package-db argument order (fixes #1057)

This commit is contained in:
Michael Snoyman 2015-08-20 08:33:01 +03:00
parent 0fcbbb7951
commit ce456d48c7
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.4.14
* Fix order of -package-db arguments to runghc [#1057](https://github.com/yesodweb/yesod/issues/1057)
## 1.4.13
* Enable stack with yesod keter [#1041](https://github.com/yesodweb/yesod/pull/1041)

View File

@ -88,7 +88,7 @@ getPackageArgs buildDir argv2 = do
hideAll | gopt DF.Opt_HideAllPackages dflags1 = [ "-hide-all-packages"]
| otherwise = []
ownPkg = packageString (DF.thisPackage dflags1)
return (extra dflags1 ++ hideAll ++ pkgFlags ++ [ownPkg])
return (reverse (extra dflags1) ++ hideAll ++ pkgFlags ++ [ownPkg])
where
#if __GLASGOW_HASKELL__ >= 710
convertPkgFlag (DF.ExposePackage (DF.PackageArg p) _) = "-package" ++ p

View File

@ -1,5 +1,5 @@
name: yesod-bin
version: 1.4.13.3
version: 1.4.14
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>