packages feed

primitive-foreign-0.1: primitive-foreign.cabal

cabal-version: 2.2
name:
  primitive-foreign
version:
  0.1
synopsis:
  using the `Prim` interface for the FFI
description:
  This library provides an alternative to the `Storable` interface,
  using the `Prim` typeclass. The goal is to make it possible to avoid
  the duplicated code between `Storable` and `Prim` APIs when one is
  working mostly with the `primitive` or `contiguous` APIs.
homepage:
  https://github.com/haskell-primitive/primitive-ffi
bug-reports:
  https://github.com/haskell-primitive/primitive-ffi/issues
license:
  BSD-3-Clause
license-file:
  LICENSE
author:
  chessai
maintainer:
  chessai <chessai1996@gmail.com>
copyright:
  © 2019 chessai
category:
  Data
build-type:
  Simple
extra-doc-files:
    README.md
  , CHANGELOG.md
tested-with:
  GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5

library
  hs-source-dirs:
    src
  exposed-modules:
    Data.Primitive.Foreign
  build-depends:
    , base >= 4.10.1 && < 4.13
    , primitive >= 0.6.4 && < 0.8
  ghc-options:
    -Wall
    -O2
  default-language:
    Haskell2010

test-suite props
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs: test
  build-depends:
    , base
    , QuickCheck
    , primitive
    , primitive-foreign
  default-language: Haskell2010
  ghc-options: -O2 -Wall

source-repository head
  type:
    git
  location:
    https://github.com/haskell-primitive/primitive-foreign.git