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
|
Name: mmap
Version: 0.5.4
Stability: alpha
License: BSD3
License-File: LICENSE
Copyright: 2008, Gracjan Polak
Author: Gracjan Polak <gracjanpolak@gmail.com>
Maintainer: Gracjan Polak <gracjanpolak@gmail.com>
Synopsis: Memory mapped files for POSIX and Windows
Description:
This library provides a wrapper to mmap(2) or MapViewOfFile,
allowing files or devices to be lazily loaded into memory as
strict or lazy ByteStrings, ForeignPtrs or plain Ptrs, using
the virtual memory subsystem to do on-demand loading.
Modifications are also supported.
Cabal-version: >= 1.2
Category: System
Build-type: Simple
Extra-Source-Files: cbits/HsMmap.h
Flag mmaptest
Description: Generate mmaptest executable
Default: False
Library
Build-depends: base<5, bytestring
Extensions: ForeignFunctionInterface
Exposed-modules: System.IO.MMap
Hs-source-dirs: .
Include-dirs: cbits
if os(mingw32)
C-sources: cbits/win32.c
else
C-sources: cbits/posix.c
Executable mmaptest
Main-is: tests/mmaptest.hs
if flag(mmaptest)
Buildable: True
else
Buildable: False
Build-depends: base<5, bytestring, HUnit, directory
Extensions: ForeignFunctionInterface, ScopedTypeVariables, CPP
Hs-source-dirs: .
CC-options: -Wall -D_DEBUG
Include-dirs: cbits
if os(mingw32)
cpp-options: -DWINDOWS
C-sources: cbits/win32.c
Build-depends: Win32
else
C-sources: cbits/posix.c
|