hslua-marshalling 2.3.1 → 2.3.2
raw patch · 14 files changed
+46/−35 lines, 14 filesdep −mtldep ~containersPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies removed: mtl
Dependency ranges changed: containers
API changes (from Hackage documentation)
- HsLua.Marshalling: peekIntegral :: forall a e. (Integral a, Read a) => Peeker e a
+ HsLua.Marshalling: peekIntegral :: (Integral a, Read a) => Peeker e a
- HsLua.Marshalling: peekRead :: forall a e. Read a => Peeker e a
+ HsLua.Marshalling: peekRead :: Read a => Peeker e a
- HsLua.Marshalling: peekRealFloat :: forall a e. (RealFloat a, Read a) => Peeker e a
+ HsLua.Marshalling: peekRealFloat :: (RealFloat a, Read a) => Peeker e a
- HsLua.Marshalling: peekStringy :: forall a e. IsString a => Peeker e a
+ HsLua.Marshalling: peekStringy :: IsString a => Peeker e a
- HsLua.Marshalling.Peekers: peekIntegral :: forall a e. (Integral a, Read a) => Peeker e a
+ HsLua.Marshalling.Peekers: peekIntegral :: (Integral a, Read a) => Peeker e a
- HsLua.Marshalling.Peekers: peekRead :: forall a e. Read a => Peeker e a
+ HsLua.Marshalling.Peekers: peekRead :: Read a => Peeker e a
- HsLua.Marshalling.Peekers: peekRealFloat :: forall a e. (RealFloat a, Read a) => Peeker e a
+ HsLua.Marshalling.Peekers: peekRealFloat :: (RealFloat a, Read a) => Peeker e a
- HsLua.Marshalling.Peekers: peekStringy :: forall a e. IsString a => Peeker e a
+ HsLua.Marshalling.Peekers: peekStringy :: IsString a => Peeker e a
Files
- CHANGELOG.md +8/−0
- LICENSE +2/−2
- hslua-marshalling.cabal +17/−21
- src/HsLua/Marshalling.hs +1/−1
- src/HsLua/Marshalling/Peek.hs +1/−1
- src/HsLua/Marshalling/Peekers.hs +2/−1
- src/HsLua/Marshalling/Push.hs +7/−1
- src/HsLua/Marshalling/Userdata.hs +1/−1
- test/HsLua/Marshalling/PeekTests.hs +1/−1
- test/HsLua/Marshalling/PeekersTests.hs +1/−1
- test/HsLua/Marshalling/PushTests.hs +1/−1
- test/HsLua/Marshalling/UserdataTests.hs +2/−2
- test/HsLua/MarshallingTests.hs +1/−1
- test/test-hslua-marshalling.hs +1/−1
CHANGELOG.md view
@@ -2,6 +2,14 @@ `hslua-marshalling` uses [PVP Versioning][]. +## hslua-marshalling-2.3.2++Released 2026-01-08.++- Relaxed upper bound for containers.++- Dropped support for GHC older than 9.6.+ ## hslua-marshalling-2.3.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-marshalling.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: hslua-marshalling-version: 2.3.1+version: 2.3.2 synopsis: Marshalling of values between Haskell and Lua. description: Provides functions to marshal values from Haskell to Lua, and /vice versa/.@@ -16,19 +16,14 @@ maintainer: tarleb@hslua.org copyright: © 2007–2012 Gracjan Polak; © 2012–2016 Ömer Sinan Ağacan;- © 2017-2024 Albert Krewinkel+ © 2017-2026 Albert Krewinkel category: Foreign extra-source-files: README.md , CHANGELOG.md-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@@ -39,22 +34,23 @@ default-language: Haskell2010 build-depends: base >= 4.11 && < 5 , bytestring >= 0.10.2 && < 0.13- , containers >= 0.5.9 && < 0.8+ , containers >= 0.5.9 && < 0.9 , hslua-core >= 2.2.1 && < 2.4- , mtl >= 2.2 && < 2.4 , text >= 1.2 && < 2.2 ghc-options: -Wall+ -Wcpp-undef+ -Werror=missing-home-modules+ -Widentities -Wincomplete-record-updates+ -Wincomplete-uni-patterns -Wnoncanonical-monad-instances+ -Wpartial-fields -Wredundant-constraints- if impl(ghc >= 8.2)- ghc-options: -Wcpp-undef- -Werror=missing-home-modules- if impl(ghc >= 8.4)- ghc-options: -Widentities- -Wincomplete-uni-patterns- -Wpartial-fields- -fhide-source-paths+ -fhide-source-paths+ if impl(ghc >= 8.10)+ ghc-options: -Wunused-packages+ if impl(ghc >= 9.0)+ ghc-options: -Winvalid-haddock library import: common-options
src/HsLua/Marshalling.hs view
@@ -2,7 +2,7 @@ Module : HsLua.Marshalling Copyright : © 2007–2012 Gracjan Polak; © 2012–2016 Ömer Sinan Ağacan;- © 2017-2024 Albert Krewinkel+ © 2017-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org>
src/HsLua/Marshalling/Peek.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE ScopedTypeVariables #-} {-| Module : HsLua.Marshalling.Peek-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : beta
src/HsLua/Marshalling/Peekers.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE ScopedTypeVariables #-} {-| Module : HsLua.Marshalling.Peekers-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : beta@@ -126,6 +126,7 @@ -- | Retrieves a 'Bool' as a Lua boolean. peekBool :: Peeker e Bool peekBool = liftLua . toboolean+{-# INLINABLE peekBool #-} -- -- Strings
src/HsLua/Marshalling/Push.hs view
@@ -1,6 +1,6 @@ {-| Module : HsLua.Marshalling.Push-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : beta@@ -50,26 +50,32 @@ -- | Pushes a 'Bool' as a Lua boolean. pushBool :: Pusher e Bool pushBool = pushboolean+{-# INLINE pushBool #-} -- | Pushes a 'T.Text' value as a UTF-8 encoded string. pushText :: Pusher e T.Text pushText = pushstring . Utf8.fromText+{-# INLINABLE pushText #-} -- | Pushes a 'ByteString' as a raw string. pushByteString :: Pusher e ByteString pushByteString = pushstring+{-# INLINE pushByteString #-} -- | Pushes a lazy 'BL.ByteString' as a raw string. pushLazyByteString :: Pusher e BL.ByteString pushLazyByteString = pushstring . BL.toStrict+{-# INLINABLE pushLazyByteString #-} -- | Pushes a 'String' as a UTF-8 encoded Lua string. pushString :: String -> LuaE e () pushString = pushstring . Utf8.fromString+{-# INLINABLE pushString #-} -- | Pushes a 'Name' as a UTF-8 encoded Lua string. pushName :: Name -> LuaE e () pushName (Name n) = pushByteString n+{-# INLINE pushName #-} -- | Pushes an @Integer@ to the Lua stack. Values representable as Lua -- integers are pushed as such; bigger integers are represented using
src/HsLua/Marshalling/Userdata.hs view
@@ -5,7 +5,7 @@ Module : HsLua.Marshalling.Userdata Copyright : © 2007–2012 Gracjan Polak; © 2012–2016 Ömer Sinan Ağacan;- © 2017-2024 Albert Krewinkel+ © 2017-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : beta
test/HsLua/Marshalling/PeekTests.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE TypeApplications #-} {-| Module : HsLua.Marshalling.PeekTests-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : alpha
test/HsLua/Marshalling/PeekersTests.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE TypeApplications #-} {-| Module : HsLua.Marshalling.PeekersTests-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org>
test/HsLua/Marshalling/PushTests.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE TypeApplications #-} {-| Module : HsLua.Marshalling.PushTests-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : alpha
test/HsLua/Marshalling/UserdataTests.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} {-| Module : HsLua.Marshalling.UserdataTests-Copyright : © 2018-2024 Albert Krewinkel+Copyright : © 2018-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> @@ -22,7 +22,7 @@ [ testGroup "pushIterator" [ "iterate over list" =: Just "0,1,1,2,3,5,8,13,21" `shouldBeResultOf` do- let fibs = 0 : 1 : zipWith (+) fibs (tail fibs)+ let fibs = 0 : 1 : zipWith (+) fibs (drop 1 fibs) Lua.openlibs Lua.pushHaskellFunction $ pushIterator (\n -> 1 <$ Lua.pushinteger n) (take 9 fibs)
test/HsLua/MarshallingTests.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE OverloadedStrings #-} {-| Module : HsLua.MarshallingTests-Copyright : © 2020-2024 Albert Krewinkel+Copyright : © 2020-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org> Stability : alpha
test/test-hslua-marshalling.hs view
@@ -1,6 +1,6 @@ {-| Module : Main-Copyright : © 2017-2024 Albert Krewinkel+Copyright : © 2017-2026 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel <tarleb@hslua.org>