callHackageDirect: correct type signature

This commit is contained in:
Jack Kelly 2019-11-20 16:36:33 +10:00
parent 4414a3bc7c
commit 9f41d8a9d0

View File

@ -181,7 +181,10 @@ in package-set { inherit pkgs stdenv callPackage; } self // {
# '... foo = self.callHackage "foo" "1.5.3" {}; ...' # '... foo = self.callHackage "foo" "1.5.3" {}; ...'
callHackage = name: version: callPackageKeepDeriver (self.hackage2nix name version); callHackage = name: version: callPackageKeepDeriver (self.hackage2nix name version);
# callHackageDirect :: Text -> Text -> AttrSet -> HaskellPackage # callHackageDirect
# :: { pkg :: Text, ver :: Text, sha256 :: Text }
# -> AttrSet
# -> HaskellPackage
# #
# This function does not depend on all-cabal-hashes and therefore will work # This function does not depend on all-cabal-hashes and therefore will work
# for any version that has been released on hackage as opposed to only # for any version that has been released on hackage as opposed to only