File: bytestring-to-vector.cabal

package info (click to toggle)
haskell-bytestring-to-vector 0.3.0.1-6
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 76 kB
  • sloc: haskell: 89; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download | duplicates (3)
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
name:                bytestring-to-vector
version:             0.3.0.1
license:             BSD3
license-file:        LICENSE
synopsis:            Convert between ByteString and Vector.Storable without copying
homepage:            https://github.com/sheyll/bytestring-to-vector
category:            Data Structures
author:              Keegan McAllister <mcallister.keegan@gmail.com>
maintainer:          Sven Heyll <sven.heyll@gmail.com>
build-type:          Simple
cabal-version:       >=1.10
description:
  This library allows conversion between the types from @Data.ByteString@
  (package @bytestring@) and @Data.Vector.Storable@ (package @vector@) without
  copying the underlying data.  This is useful, for example, when @ByteString@
  IO produces or consumes vectors of numbers in native byte order.
  .
  The conversion relies on the fact that @ByteString@ and @Vector@ use their
  respective @ForeignPtr@s in compatible ways.
  .
  This library is a fork of the @spool@ package written by Keegan McAllister.

extra-source-files:
  README.md, stack.yaml, LICENSE, .travis.yml

library
  exposed-modules:  Data.Vector.Storable.ByteString
  hs-source-dirs:   src
  ghc-options:      -Wall
  default-language: Haskell2010
  build-depends:
      base       >= 3 && < 5
    , bytestring
    , vector

test-suite tests
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Main.hs
  default-language: Haskell2010
  build-depends:
      base >= 3 && < 5
    , byteorder
    , bytestring-to-vector
    , bytestring
    , vector
    , QuickCheck

source-repository head
    type:     git
    location: git://github.com/sheyll/bytestring-to-vector.git