hslua-module-zip 1.1.4 → 1.2.0
raw patch · 5 files changed
+26/−38 lines, 5 filesdep −hslua-typingdep ~hslua-packagingPVP ok
version bump matches the API change (PVP)
Dependencies removed: hslua-typing
Dependency ranges changed: hslua-packaging
API changes (from Hackage documentation)
Files
- CHANGELOG.md +9/−1
- LICENSE +1/−1
- hslua-module-zip.cabal +8/−14
- src/HsLua/Module/Zip.hs +7/−21
- test/test-hslua-module-zip.hs +1/−1
CHANGELOG.md view
@@ -2,11 +2,19 @@ `hslua-module-zips` uses [PVP Versioning][]. +## hslua-module-zip-1.2.0++Released 2026-01-08++- Require hslua-packaging-2.4.++- Allowed time-1.15.+ ## hslua-module-zip-1.1.4 Released 2025-06-23. -- Allowed time-1.4.+- Allowed time-1.14. ## hslua-module-zip-1.1.3
LICENSE view
@@ -1,6 +1,6 @@ MIT License -Copyright © 2020-2024 Albert Krewinkel+Copyright © 2020-2026 Albert Krewinkel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
hslua-module-zip.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: hslua-module-zip-version: 1.1.4+version: 1.2.0 synopsis: Lua module to work with file zips. description: Module with function for creating, modifying, and extracting files from zip archives.@@ -10,21 +10,16 @@ license-file: LICENSE author: Albert Krewinkel maintainer: Albert Krewinkel <tarleb@hslua.org>-copyright: © 2020-2025 Albert Krewinkel+copyright: © 2020-2026 Albert Krewinkel category: Foreign build-type: Simple extra-doc-files: README.md CHANGELOG.md extra-source-files: test/test-zip.lua-tested-with: GHC == 8.8.4- , GHC == 8.10.7- , GHC == 9.0.2- , GHC == 9.2.8- , GHC == 9.4.8- , GHC == 9.6.7- , GHC == 9.8.4- , GHC == 9.10.2- , GHC == 9.12.2+tested-with: GHC == 9.6+ , GHC == 9.8+ , GHC == 9.10+ , GHC == 9.12 source-repository head type: git@@ -34,7 +29,7 @@ common common-options build-depends: base >= 4.11 && < 5 , hslua-core >= 2.3 && < 2.4- , hslua-packaging >= 2.3 && < 2.4+ , hslua-packaging >= 2.4 && < 2.5 ghc-options: -Wall -Wcpp-undef@@ -62,9 +57,8 @@ build-depends: , hslua-list >= 1.1 && < 1.2 , hslua-marshalling >= 2.3 && < 2.4- , hslua-typing >= 0.1 && < 0.2 , text >= 1.2 && < 2.2- , time >= 1.5 && < 1.15+ , time >= 1.5 && < 1.16 , zip-archive >= 0.4 && < 0.5 test-suite hslua-module-zip-test
src/HsLua/Module/Zip.hs view
@@ -5,7 +5,7 @@ {-# LANGUAGE TypeApplications #-} {-| Module : HsLua.Module.Zip-Copyright : © 2022-2024 Albert Krewinkel+Copyright : © 2022-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> @@ -58,7 +58,6 @@ , pushLazyByteString, pushList, pushIntegral, pushString , retrieving, typeMismatchMessage ) import HsLua.Packaging-import HsLua.Typing import qualified Codec.Archive.Zip as Zip import qualified Data.Text as T@@ -71,9 +70,8 @@ -- | The @zip@ module specification. documentedModule :: forall e. LuaError e => Module e-documentedModule = Module- { moduleName = "zip"- , moduleDescription = T.unlines+documentedModule = defmodule "zip"+ `withDescription` T.unlines [ "Functions to create, modify, and extract files from zip archives." , "" , "The module can be called as a function, in which case it behaves"@@ -92,9 +90,8 @@ , " symbolic links are preserved as such. This option is ignored" , " on Windows." ]- , moduleFields = fields- , moduleFunctions = functions- , moduleOperations =+ `withFunctions` functions+ `withOperations` [ operation Call $ lambda ### (do -- call function `zip`@@ -105,23 +102,12 @@ pure (NumResults 1)) =?> "new Archive" ]- , moduleTypeInitializers =- [ initType typeArchive- , initType typeEntry- ]- }+ `associateType` typeArchive+ `associateType` typeEntry -- | First published version of this library. initialVersion :: Version initialVersion = makeVersion [1,0,0]------- Fields------- | Exported fields.-fields :: [Field e]-fields = [] --
test/test-hslua-module-zip.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE TypeApplications #-} {-| Module : Main-Copyright : © 2021-2024 Albert Krewinkel+Copyright : © 2021-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : stable