packages feed

hslua-list 1.0.0 → 1.1.0

raw patch · 3 files changed

+10/−15 lines, 3 filesdep −hslua-marshallingdep ~hslua-core

Dependencies removed: hslua-marshalling

Dependency ranges changed: hslua-core

Files

CHANGELOG.md view
@@ -2,6 +2,13 @@  `hslua-list` uses [PVP Versioning](https://pvp.haskell.org). +## hslua-list-1.1.0++Release pending.++-   Removed `pushPandocList`. The function was a left-over from+    pandoc-lua-marshal, the place where this package originated.+ ## hslua-list-1.0.0  Released 2022-10-10.
hslua-list.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                hslua-list-version:             1.0.0+version:             1.1.0 synopsis:            Opinionated, but extensible Lua list type. description:         List type for Lua, with a Haskell interface. homepage:            https://hslua.org/@@ -30,7 +30,7 @@  common common-options   build-depends:       base                  >= 4.9.1  && < 5-                     , hslua-core            >= 2.3    && < 2.4+                     , hslua-core            >= 2.2    && < 2.3   ghc-options:         -Wall                        -Wcompat                        -Widentities@@ -56,7 +56,6 @@   c-sources:           cbits/listmod.c   exposed-modules:     HsLua.List   build-depends:       bytestring-                     , hslua-marshalling     >= 2.1    && < 2.3  test-suite hslua-list-test   import:              common-options
src/HsLua/List.hs view
@@ -8,8 +8,7 @@ Lua lists with additional methods. -} module HsLua.List-  ( pushPandocList-  , luaopen_list_ptr+  ( luaopen_list_ptr   , pushListModule   , newListMetatable   ) where@@ -17,16 +16,6 @@ import Data.ByteString (useAsCString) import Foreign.C import HsLua.Core-import HsLua.Marshalling (Pusher, pushList)---- | Pushes a list as a numerically-indexed Lua table, and sets a--- metatable that offers a number of convenience functions.-pushPandocList :: LuaError e => Pusher e a -> Pusher e [a]-pushPandocList pushItem items = do-  pushList pushItem items-  getmetatable' "List" >>= \case-    TypeTable -> setmetatable (nth 2)-    _ -> failLua "List has not been initialized correctly."  -- | Pointer to the function that opens the List module and pushes it to the -- stack.