packages feed

derive-storable-0.1.0.2: derive-storable.cabal

name:                derive-storable

version:             0.1.0.2
synopsis: Derive Storable instances with help of GHC.Generics.           

description:         The package allows for automatic derivation of Storable instances 
                     with C-like memory layout.

homepage:            https://www.github.com/mkloczko/derive-storable/
license:             MIT

license-file:        LICENSE

author:              Mateusz Kloczko

maintainer:          mateusz.p.kloczko@gmail.com
category:            FFI

build-type:          Simple

extra-source-files:  ChangeLog.md README.md

cabal-version:       >=1.10


library
  exposed-modules:     Foreign.Storable.Generic, Foreign.Storable.Generic.Tools
                     , Foreign.Storable.Generic.Internal, Foreign.Storable.Generic.Instances       
  build-depends:       base >=4.8 && <4.10
  hs-source-dirs:      src
  default-language:    Haskell2010
 

test-suite c_alignment
  type:                exitcode-stdio-1.0
  
  hs-source-dirs:      src, test/Basic, test/Basic/cbits
  c-sources:           test/Basic/cbits/TestCases.c 
  main-is:             MemoryCSpec.hs
  build-depends:       base >= 4.8 && <4.10, hspec == 2.2.* ,QuickCheck == 2.8.*, generic-storable
  
  default-language:    Haskell2010

test-suite spec
  type:                exitcode-stdio-1.0
  hs-source-dirs:      src/ test/Spec test/Basic test/GenericRep/
  Main-is:             Spec.hs
  build-depends:       base >= 4.8 && < 4.10, generic-storable, hspec == 2.2.*, QuickCheck == 2.8.*

  default-language:    Haskell2010