summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2014-08-28 05:24:04 +0100
committerEdward Z. Yang <ezyang@cs.stanford.edu>2014-08-29 15:03:33 +0100
commit616dd87f60b99d8843058366304e2b9f2475eb57 (patch)
tree77d59161db5e575b6b01a40743768ed7c25de5dc /compiler
parentda7289882610ccae3f16c74be7440d19c29ecd20 (diff)
downloadhaskell-616dd87f60b99d8843058366304e2b9f2475eb57.tar.gz
Fix a few minor issues spotted in code review
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/PackageConfig.hs2
-rw-r--r--compiler/main/Packages.lhs3
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs
index 038291d6b3..3f2bf1680b 100644
--- a/compiler/main/PackageConfig.hs
+++ b/compiler/main/PackageConfig.hs
@@ -107,7 +107,7 @@ pprPackageConfig InstalledPackageInfo {..} =
field "trusted" (ppr trusted),
field "import-dirs" (fsep (map text importDirs)),
field "library-dirs" (fsep (map text libraryDirs)),
- field "hs-libraries" (fsep (map text hsLibraries)),
+ field "hs-libraries" (fsep (map text hsLibraries)),
field "extra-libraries" (fsep (map text extraLibraries)),
field "extra-ghci-libraries" (fsep (map text extraGHCiLibraries)),
field "include-dirs" (fsep (map text includeDirs)),
diff --git a/compiler/main/Packages.lhs b/compiler/main/Packages.lhs
index 37ddd846ee..01c75c02d8 100644
--- a/compiler/main/Packages.lhs
+++ b/compiler/main/Packages.lhs
@@ -1363,7 +1363,8 @@ add_package pkg_db ipid_map ps (p, mb_parent)
| Just pid <- Map.lookup ipid ipid_map
= add_package pkg_db ipid_map ps (pid, Just p)
| otherwise
- = Failed (missingPackageMsg ipid <> missingDependencyMsg mb_parent)
+ = Failed (missingPackageMsg ipid
+ <> missingDependencyMsg mb_parent)
missingPackageErr :: Outputable pkgid => DynFlags -> pkgid -> IO a
missingPackageErr dflags p