summaryrefslogtreecommitdiff
path: root/krpc.cabal
blob: 779d7abc0f385bfc0941049b0ca1652a75624d28 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name:                  krpc
version:               0.1.0.0
license:               MIT
license-file:          LICENSE
author:                Sam T.
maintainer:            Sam T. <pxqr.sta@gmail.com>
copyright:             (c) 2013, Sam T.
category:              Network
build-type:            Simple
cabal-version:         >=1.8
tested-with:           GHC == 7.4.1
                     , GHC == 7.6.3
homepage:              https://github.com/pxqr/krpc
bug-reports:           https://github.com/pxqr/krpc/issues
synopsis:              KRPC remote procedure call protocol implementation.
description:

  KRPC remote procedure call protocol implementation.
  .
  [/Release Notes/]
  .
    * /0.1.0.0:/ Initial version.


source-repository head
  type:                git
  location:            git://github.com/pxqr/krpc.git



library
  exposed-modules:     Remote.KRPC
                     , Remote.KRPC.Protocol
                     , Remote.KRPC.Scheme

  build-depends:       base          == 4.*

                     , lifted-base   >= 0.1.1
                     , transformers  >= 0.2
                     , monad-control >= 0.3

                     , bytestring   >= 0.10
                     , containers   >= 0.4
                     , bencoding    >= 0.1

                     , network      >= 2.3

  hs-source-dirs:      src
  extensions:          PatternGuards
  ghc-options:         -Wall



test-suite test-client
  type:                exitcode-stdio-1.0
  main-is:             Client.hs
  other-modules:       Shared
  build-depends:       base        == 4.*
                     , bytestring
                     , containers
                     , process
                     , filepath

                     , bencoding
                     , krpc

                     , HUnit
                     , test-framework
                     , test-framework-hunit

  hs-source-dirs:      tests

executable test-server
  main-is:             Server.hs
  other-modules:       Shared
  build-depends:       base        == 4.*
                     , bytestring
                     , bencoding
                     , krpc

  hs-source-dirs:      tests




executable bench-server
  main-is:             Server.hs
  build-depends:       base        == 4.*, krpc, bytestring
  hs-source-dirs:      bench
  ghc-options:         -fforce-recomp

benchmark bench-client
  type:                exitcode-stdio-1.0
  main-is:             Main.hs
  hs-source-dirs:      bench
  build-depends:       base == 4.*, krpc, criterion, bytestring
  ghc-options:         -O2 -fforce-recomp