File: bytestring-mmap.cabal

package info (click to toggle)
haskell-bytestring-mmap 0.2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 116 kB
  • sloc: haskell: 230; ansic: 11; sh: 7; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (4)
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
name:                bytestring-mmap
version:             0.2.2
synopsis:            mmap support for strict ByteStrings
description:
    .
    This library provides a wrapper to mmap(2), allowing files or
    devices to be lazily loaded into memory as strict or lazy
    ByteStrings, using the virtual memory subsystem to do on-demand
    loading.
    .
category:            System
homepage:            http://code.haskell.org/~dons/code/bytestring-mmap/
license:             BSD3
license-file:        LICENSE
author:              Don Stewart 
maintainer:          Don Stewart <dons00@gmail.com>
build-type:          Simple
cabal-version:      >= 1.2

flag split-base
  description: Choose the new smaller, split-up base package.

library
  build-depends: unix
  if flag(split-base)
    build-depends:     base >= 3 && < 6, bytestring >= 0.9
  else
    build-depends:     base < 3
  extensions:        CPP, ForeignFunctionInterface, BangPatterns

  exposed-modules:   System.IO.Posix.MMap
                     System.IO.Posix.MMap.Lazy
                     System.IO.Posix.MMap.Internal

  ghc-options:       -Wall -O2

  c-sources:         cbits/hs_bytestring_mmap.c
  include-dirs:      include
  includes:          hs_bytestring_mmap.h
  install-includes:  hs_bytestring_mmap.h