Skip to content
Snippets Groups Projects
Commit 64d5c62d authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Generalise a function's type.

parent d36fe8c9
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ import Distribution.Client.Sandbox.Types ...@@ -33,7 +33,7 @@ import Distribution.Client.Sandbox.Types
( SandboxPackageInfo(..) ) ( SandboxPackageInfo(..) )
import Distribution.Package import Distribution.Package
( PackageIdentifier, packageId, packageName, packageVersion ) ( Package, PackageIdentifier, packageId, packageName, packageVersion )
import Distribution.Simple.Compiler import Distribution.Simple.Compiler
( Compiler(compilerId), PackageDBStack ) ( Compiler(compilerId), PackageDBStack )
import Distribution.Simple.PackageIndex (PackageIndex) import Distribution.Simple.PackageIndex (PackageIndex)
...@@ -200,7 +200,7 @@ freezePackages verbosity pkgs = do ...@@ -200,7 +200,7 @@ freezePackages verbosity pkgs = do
showPkgEnv = BS.Char8.pack . showPackageEnvironment showPkgEnv = BS.Char8.pack . showPackageEnvironment
formatPkgs :: [PlanPackage] -> [String] formatPkgs :: Package pkg => [pkg] -> [String]
formatPkgs = map $ showPkg . packageId formatPkgs = map $ showPkg . packageId
where where
showPkg pid = name pid ++ " == " ++ version pid showPkg pid = name pid ++ " == " ++ version pid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment