haskellPackages.kriti-lang: init at 0.3.1 Towards getting hasura-related packages to work with Stackage Nightly / GHC 9.0.main
parent
820408b2e8
commit
f553614955
@ -1,33 +0,0 @@ |
||||
diff --git a/server/src-lib/Data/HashMap/Strict/Extended.hs b/server/src-lib/Data/HashMap/Strict/Extended.hs
|
||||
index eaff0dfba..9902cadd0 100644
|
||||
--- a/src-lib/Data/HashMap/Strict/Extended.hs
|
||||
+++ b/src-lib/Data/HashMap/Strict/Extended.hs
|
||||
@@ -7,7 +7,6 @@ module Data.HashMap.Strict.Extended
|
||||
, groupOnNE
|
||||
, differenceOn
|
||||
, lpadZip
|
||||
- , mapKeys
|
||||
, unionsWith
|
||||
) where
|
||||
|
||||
@@ -54,20 +53,6 @@ lpadZip left = catMaybes . flip A.alignWith left \case
|
||||
That b -> Just (Nothing, b)
|
||||
These a b -> Just (Just a, b)
|
||||
|
||||
--- | @'mapKeys' f s@ is the map obtained by applying @f@ to each key of @s@.
|
||||
---
|
||||
--- The size of the result may be smaller if @f@ maps two or more distinct
|
||||
--- keys to the same new key. In this case the value at the greatest of the
|
||||
--- original keys is retained.
|
||||
---
|
||||
--- > mapKeys (+ 1) (fromList [(5,"a"), (3,"b")]) == fromList [(4, "b"), (6, "a")]
|
||||
--- > mapKeys (\ _ -> 1) (fromList [(1,"b"), (2,"a"), (3,"d"), (4,"c")]) == singleton 1 "c"
|
||||
--- > mapKeys (\ _ -> 3) (fromList [(1,"b"), (2,"a"), (3,"d"), (4,"c")]) == singleton 3 "c"
|
||||
---
|
||||
--- copied from https://hackage.haskell.org/package/containers-0.6.4.1/docs/src/Data.Map.Internal.html#mapKeys
|
||||
-mapKeys :: (Ord k2, Hashable k2) => (k1 -> k2) -> HashMap k1 a -> HashMap k2 a
|
||||
-mapKeys f = fromList . foldrWithKey (\k x xs -> (f k, x) : xs) []
|
||||
-
|
||||
-- | The union of a list of maps, with a combining operation:
|
||||
-- (@'unionsWith' f == 'Prelude.foldl' ('unionWith' f) 'empty'@).
|
||||
--
|
@ -0,0 +1,41 @@ |
||||
# This has been automatically generated by the script |
||||
# ./update.sh. This should not be changed by hand. |
||||
{ mkDerivation, aeson, aeson-pretty, alex, array, base, bytestring |
||||
, containers, directory, fetchgit, filepath, generic-arbitrary |
||||
, happy, hspec, hspec-core, hspec-golden, lens, lens-aeson, lib |
||||
, megaparsec, mtl, network-uri, optparse-applicative, parsec |
||||
, parser-combinators, pretty-simple, prettyprinter, QuickCheck |
||||
, raw-strings-qq, safe-exceptions, scientific, text |
||||
, unordered-containers, utf8-string, vector |
||||
}: |
||||
mkDerivation { |
||||
pname = "kriti-lang"; |
||||
version = "0.3.1"; |
||||
src = fetchgit { |
||||
url = "https://github.com/hasura/kriti-lang.git"; |
||||
sha256 = "09v31xp8gkc0p0gfysxyd8yb7lyb1vpgzq8550h3s3msjbapr7pj"; |
||||
rev = "0f0b153b93af5dc6c6e995c016ca4562e8438cec"; |
||||
fetchSubmodules = true; |
||||
}; |
||||
isLibrary = true; |
||||
isExecutable = true; |
||||
libraryHaskellDepends = [ |
||||
aeson array base bytestring containers lens megaparsec mtl |
||||
network-uri optparse-applicative parser-combinators prettyprinter |
||||
scientific text unordered-containers utf8-string vector |
||||
]; |
||||
libraryToolDepends = [ alex happy ]; |
||||
executableHaskellDepends = [ |
||||
aeson base bytestring containers mtl optparse-applicative |
||||
prettyprinter text utf8-string |
||||
]; |
||||
testHaskellDepends = [ |
||||
aeson aeson-pretty base bytestring containers directory filepath |
||||
generic-arbitrary hspec hspec-core hspec-golden lens lens-aeson mtl |
||||
optparse-applicative parsec pretty-simple prettyprinter QuickCheck |
||||
raw-strings-qq safe-exceptions scientific text unordered-containers |
||||
utf8-string vector |
||||
]; |
||||
license = lib.licenses.asl20; |
||||
maintainers = with lib.maintainers; [ lassulus ]; |
||||
} |
Loading…
Reference in new issue