File: filelock.cabal

package info (click to toggle)
haskell-filelock 0.1.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 92 kB
  • sloc: haskell: 151; makefile: 4
file content (69 lines) | stat: -rw-r--r-- 1,902 bytes parent folder | download
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
66
67
68
69
cabal-version:       >=1.10
name:                filelock
version:             0.1.1.7
synopsis:            Portable interface to file locking (flock / LockFileEx)
description:         This package provides an interface to Windows and Unix
                     file locking functionalities.
homepage:            http://github.com/haskell-pkg-janitors/filelock
license:             PublicDomain
license-file:        LICENSE
author:              Takano Akio
maintainer:          Andreas Abel
category:            System
build-type:          Simple

extra-source-files:
  CHANGELOG.md
  tests/lock.log.expected

tested-with:
  GHC == 9.6.2
  GHC == 9.4.5
  GHC == 9.2.8
  GHC == 9.0.2
  GHC == 8.10.7
  GHC == 8.8.4
  GHC == 8.6.5
  GHC == 8.4.4
  GHC == 8.2.2
  GHC == 8.0.2

library
  hs-source-dirs:      .
  exposed-modules:     System.FileLock
  other-modules:       System.FileLock.Internal.Flock
                       System.FileLock.Internal.LockFileEx
  default-language:    Haskell2010

  build-depends:       base >=4.9.0.0 && <5
  build-tools:         hsc2hs

  ghc-options:        -Wall
  if os(windows)
    cpp-options:      -DUSE_LOCKFILEEX
    build-depends:    Win32
  else
    cpp-options:      -DUSE_FLOCK
    build-depends:    unix

test-suite test
  type:               exitcode-stdio-1.0
  hs-source-dirs:     tests
  main-is:            test.hs
  build-depends:      filelock, process >= 1.2.1.0, async >= 2.0.0.0, base
  ghc-options:        -threaded
  default-language:   Haskell2010

test-suite interrupt
  type:               exitcode-stdio-1.0
  hs-source-dirs:     tests
  main-is:            interrupt.hs
  build-depends:      filelock, process >= 1.2.1.0, base
  ghc-options:        -threaded
  default-language:   Haskell2010
  if os(windows)
    buildable:        False

source-repository head
  type: git
  location: https://github.com/haskell-pkg-janitors/filelock.git