packages feed

ats-storable-0.3.0.4: ats-storable.cabal

cabal-version: 1.18
name: ats-storable
version: 0.3.0.4
license: BSD3
license-file: LICENSE
copyright: Copyright: (c) 2018 Vanessa McHale
maintainer: vamchale@gmail.com
author: Vanessa McHale
synopsis: Marshal ATS types into Haskell
description:
    Facilities for sharing types between ATS and Haskell
category: ATS, Generics
build-type: Simple
extra-source-files:
    atspkg.dhall
    ats-src/*.dats

source-repository head
    type: darcs
    location: https://hub.darcs.net/vmchale/ats-storable

flag development
    description:
        Enable `-Werror`
    default: False
    manual: True

library
    exposed-modules:
        Foreign.Storable.ATS
    hs-source-dirs: src
    default-language: Haskell2010
    other-extensions: ConstrainedClassMethods DefaultSignatures
                      DeriveDataTypeable FlexibleInstances IncoherentInstances
                      InstanceSigs MonoLocalBinds ScopedTypeVariables StandaloneDeriving
                      TypeOperators UndecidableInstances
    ghc-options: -Wall
    build-depends:
        base >=4.10 && <5,
        composition-prelude -any,
        text -any,
        bytestring -any
    
    if flag(development)
        ghc-options: -Werror
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates
                     -Wcompat

test-suite ats-storable-test
    type: exitcode-stdio-1.0
    main-is: Spec.hs
    hs-source-dirs: test
    default-language: Haskell2010
    other-extensions: DeriveAnyClass DeriveDataTypeable DeriveFunctor
                      DeriveGeneric
    extra-libraries:
        storable
    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base -any,
        ats-storable -any,
        hspec -any
    
    if flag(development)
        ghc-options: -Werror
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates
                     -Wcompat