packages feed

hslua-module-version 1.1.1 → 1.2.0

raw patch · 5 files changed

+35/−38 lines, 5 filesdep −filepathdep ~hslua-packagingPVP ok

version bump matches the API change (PVP)

Dependencies removed: filepath

Dependency ranges changed: hslua-packaging

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -2,6 +2,12 @@  `hslua-module-version` uses [PVP Versioning][]. +## hslua-module-version-1.2.0++Released 2026-01-08.++- Require hslua-packaging 2.4 or later.+ ## hslua-module-version-1.1.1  Released 2024-01-18.
LICENSE view
@@ -1,7 +1,7 @@-Copyright © 1994-2022 Lua.org, PUC-Rio.+Copyright © 1994-2023 Lua.org, PUC-Rio. Copyright © 2007-2012 Gracjan Polak Copyright © 2012-2015 Ömer Sinan Ağacan-Copyright © 2016-2024 Albert Krewinkel+Copyright © 2016-2026 Albert Krewinkel  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
hslua-module-version.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                hslua-module-version-version:             1.1.1+version:             1.2.0 synopsis:            Lua module to work with version specifiers. description:         Wrapper for the Data.Version.Version Haskell type. homepage:            https://hslua.org/@@ -9,21 +9,16 @@ license-file:        LICENSE author:              Albert Krewinkel maintainer:          Albert Krewinkel <tarleb@hslua.org>-copyright:           © 2019-2024 Albert Krewinkel+copyright:           © 2019-2026 Albert Krewinkel category:            Foreign build-type:          Simple extra-doc-files:     README.md                      CHANGELOG.md extra-source-files:  test/test-version.lua-tested-with:         GHC == 8.4.4-                   , GHC == 8.6.5-                   , GHC == 8.8.4-                   , GHC == 8.10.7-                   , GHC == 9.0.2-                   , GHC == 9.2.8-                   , GHC == 9.4.8-                   , GHC == 9.6.3-                   , GHC == 9.8.1+tested-with:         GHC == 9.6+                   , GHC == 9.8+                   , GHC == 9.10+                   , GHC == 9.12  source-repository head   type:                git@@ -32,26 +27,23 @@  common common-options   build-depends:       base              >= 4.9.1  && < 5-                     , filepath          >= 1.4    && < 1.6                      , hslua-core        >= 2.3    && < 2.4-                     , hslua-marshalling >= 2.3    && < 2.4-                     , hslua-packaging   >= 2.3    && < 2.4-                     , text              >= 1.2    && < 2.2+                     , hslua-packaging   >= 2.4    && < 2.5    ghc-options:         -Wall-                       -Wcompat+                       -Wcpp-undef+                       -Werror=missing-home-modules                        -Widentities-                       -Wincomplete-uni-patterns                        -Wincomplete-record-updates-  if impl(ghc >= 8.0)-    ghc-options:       -Wredundant-constraints-  if impl(ghc >= 8.2)-    ghc-options:       -fhide-source-paths-  if impl(ghc >= 8.4)-    ghc-options:       -Wmissing-export-lists+                       -Wincomplete-uni-patterns+                       -Wnoncanonical-monad-instances                        -Wpartial-fields-  if impl(ghc >= 8.8)-    ghc-options:       -Wmissing-deriving-strategies+                       -Wredundant-constraints+                       -fhide-source-paths+  if impl(ghc >= 8.10)+    ghc-options:         -Wunused-packages+  if impl(ghc >= 9.0)+    ghc-options:         -Winvalid-haddock    default-language:    Haskell2010 @@ -59,6 +51,9 @@   import:              common-options   hs-source-dirs:      src   exposed-modules:     HsLua.Module.Version+  build-depends:       hslua-marshalling >= 2.3    && < 2.4+                     , text              >= 1.2    && < 2.2+  test-suite hslua-module-version-test   import:              common-options
src/HsLua/Module/Version.hs view
@@ -2,11 +2,11 @@ {-# LANGUAGE OverloadedStrings #-} {-| Module      : HsLua.Module.Version-Copyright   : © 2019-2024 Albert Krewinkel+Copyright   : © 2019-2026 Albert Krewinkel License     : MIT Maintainer  : Albert Krewinkel <tarleb@hslua.org> -Lua module to work with file paths.+Lua module to work with version specifiers. -} module HsLua.Module.Version (   -- * Module@@ -38,20 +38,16 @@  -- | The @path@ module specification. documentedModule :: LuaError e => Module e-documentedModule = Module-  { moduleName = "Version"-  , moduleDescription = "Version specifier handling"-  , moduleFields = []-  , moduleFunctions = [must_be_at_least]-  , moduleOperations =+documentedModule = defmodule "Version"+  `withDescription` "Version specifier handling"+  `withFunctions` [must_be_at_least]+  `withOperations`     [ operation Call $ lambda       ### liftPure2 (\_ v -> v)       <#> parameter (const $ pure ()) "table" "module table" "ignored"       <#> versionParam "version" "version-like object"       =#> udresult typeVersion "new Version object"     ]-  , moduleTypeInitializers = []-  }  -- | Type definition of Lua Version values. typeVersion :: LuaError e => DocumentedTypeWithList e Version Int
test/test-hslua-module-version.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>