~jack/libtelnet-haskell

ref: 3e64692dda68d2dba7a97f77877a8e10693e0f4e libtelnet-haskell/libtelnet.cabal -rw-r--r-- 2.0 KiB
3e64692dJack Kelly relax bytestring version bound 6 months ago
                                                                                
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
cabal-version:       2.2
name:                libtelnet
version:             0.1.0.1
synopsis:            Bindings to libtelnet
description:         Binds https://github.com/seanmiddleditch/libtelnet , a C
                     library for writing telnet clients and
                     servers. See @README.md@ or
                     "Network.Telnet.LibTelnet" to get started.
homepage:            https://git.sr.ht/~jack/libtelnet-haskell
bug-reports:         https://todo.sr.ht/~jack/libtelnet-haskell
license:             GPL-3.0-or-later
license-file:        COPYING
author:              Jack Kelly
maintainer:          jack@jackkelly.name
copyright:           (c) 2017-2021 Jack Kelly
category:            Network
build-type:          Simple
extra-source-files:  COPYING, CHANGELOG.md, README.md
tested-with:         GHC == 8.10.3
                   , GHC == 8.8.4
                   , GHC == 8.6.5

flag example
  description:         Build the example program
  default:             False
  manual:              True

library
  hs-source-dirs:      src
  exposed-modules:     Network.Telnet.LibTelnet
                     , Network.Telnet.LibTelnet.Ffi
                     , Network.Telnet.LibTelnet.Iac
                     , Network.Telnet.LibTelnet.Options
                     , Network.Telnet.LibTelnet.Types
  ghc-options:         -Wall
  build-depends:       base >= 4.9 && < 4.16
                     , bytestring >= 0.10.6.0 && < 0.12
  pkgconfig-depends:   libtelnet
  default-language:    Haskell2010

executable example
  hs-source-dirs:      example
  main-is:             Main.hs
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  if flag(example)
    buildable:         True
    build-depends:       base
                       , libtelnet
                       , bytestring
                       , network-simple >= 0.4 && < 0.5
                       , monad-loops >= 0.4.3 && < 0.5
  else
    buildable:         False
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://git.sr.ht/~jack/libtelnet-haskell