1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
Cabal-Version: 2.2
Name: storable-tuple
Version: 0.1
Category: Data, Foreign
Synopsis: Storable instance for pairs and triples
Description:
Provides a Storable instance for pair and triple
which should be binary compatible with C99 and C++.
The only purpose of this package is to provide a standard location
for this instance so that other packages needing this instance
can play nicely together.
Note however, that the original purpose of the @Storable@ class
was the transfer of primitive types between Haskell and foreign code.
This purpose was already extended by HSC,
which creates @Storable@ instances for records from C header files.
Nonetheless,
@Storable@ instances for tuples were omitted from @base@ by intention.
Instead of using the orphan instances from this package,
you may instead use the custom class or the wrapper type
from the module @Foreign.Storable.Record.Tuple@
from the package @storable-record@.
License: BSD-3-Clause
License-file: LICENSE
Author: Henning Thielemann <storable@henning-thielemann.de>
Maintainer: Henning Thielemann <storable@henning-thielemann.de>
Homepage: http://code.haskell.org/~thielema/storable-tuple/
Stability: Experimental
Build-Type: Simple
Tested-With: GHC==6.8.2, GHC==8.0.1
Extra-Source-Files:
Changes.md
Source-Repository head
Type: darcs
Location: http://code.haskell.org/~thielema/storable-tuple/
Source-Repository this
Type: darcs
Location: http://code.haskell.org/~thielema/storable-tuple/
Tag: 0.1
Flag splitBase
Description: Choose the new smaller, split-up base package.
Library
Build-Depends:
storable-record >=0.0.5 && <0.1,
utility-ht >=0.0.1 && <0.1,
base-orphans >= 0.5 && <1
If flag(splitBase)
Build-Depends: base >=3 && <5
Else
Build-Depends:
special-functors >= 1.0 && <1.1,
base >= 1.0 && < 2
Default-Language: Haskell98
GHC-Options: -Wall -fno-warn-orphans
Hs-Source-Dirs: src
Exposed-Modules:
Foreign.Storable.Tuple
|