packages feed

extism-pdk-0.2.0.0: extism-pdk.cabal

cabal-version:      3.0
name:               extism-pdk
version:            0.2.0.0

-- A short (one-line) description of the package.
synopsis: Extism Plugin Development Kit

-- A longer description of the package.
description: Haskell bindings to the Extism runtime for use with wasm32-wasi-ghc

-- A URL where users can report bugs.
bug-reports: https://github.com/extism/haskell-pdk

-- The license under which the package is released.
license: BSD-3-Clause
author:             Extism Authors
maintainer:         oss@dylib.so

category: WASM, plugins
extra-doc-files: CHANGELOG.md

library
    exposed-modules:
      Extism.PDK
      Extism.PDK.Bindings
      Extism.PDK.HTTP
      Extism.PDK.JSON
      Extism.PDK.MsgPack
      Extism.PDK.Util
      Extism.PDK.Memory

    -- Modules included in this executable, other than Main.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:
    build-depends:
      base >= 4.15.0 && < 5,
      bytestring >= 0.11.4 && <= 0.12,
      cereal >= 0.5.8 && < 0.6,
      containers >= 0.6.7 && < 0.7,
      extism-manifest >= 0.3.0 && <= 1.0.0,
      json >= 0.11 && < 0.12,
      messagepack >= 0.5.5 && < 0.6,
      binary >= 0.8.9 && < 0.9.0

    hs-source-dirs:   src
    default-language: Haskell2010

executable hello
    scope: private
    main-is: examples/Hello.hs
    build-depends: base, extism-pdk
    default-language: Haskell2010
    ghc-options:
      -optl -Wl,--export=testing 

executable http_get
    scope: private
    main-is: examples/HTTPGet.hs
    build-depends: base, extism-pdk
    default-language: Haskell2010
    ghc-options:
      -optl -Wl,--export=http_get

executable count_vowels
    scope: private
    main-is: examples/CountVowels.hs
    build-depends: base, extism-pdk
    default-language: Haskell2010
    ghc-options:
      -optl -Wl,--export=count_vowels