export resolveTarget to own module
[diohsc.git] / diohsc.cabal
blob081d8393684bc436e8ff3dc005517f86a2a7a7bc
1 cabal-version:      1.18
2 name:               diohsc
3 version:            0.1.13
4 license:            GPL-3
5 license-file:       COPYING
6 maintainer:         mbays@sdf.org
7 author:             Martin Bays
8 homepage:           https://mbays.sdf.org/diohsc
9 synopsis:           Gemini client
10 description:
11     Line-based command-oriented interactive client for the gemini protocol.
13 category:           Browser
14 build-type:         Simple
15 extra-doc-files:
16     README.md
17     THANKS
18     diohscrc.sample
19     Makefile
20     diohsc.1.md
21     CHANGELOG.md
23 source-repository head
24     type:     git
25     location: https://repo.or.cz/diohsc.git
27 flag libiconv
28     description:
29         On windows: use libiconv for charset conversion
30         (iconv is always used on POSIX systems, with no need for this flag)
32     default:     False
33     manual:      True
35 flag magic
36     description: Use libmagic to determine mimetypes of local files
37     default:     False
38     manual:      True
40 flag irilinks
41     description:
42         Allow IRIs in gemtext links (preparing for likely spec change).
43         Punycoding is not currently supported.
45     default:     False
46     manual:      True
48 executable diohsc
49     main-is:          diohsc.hs
50     other-modules:
51         ActiveIdentities
52         Alias
53         ANSIColour
54         BoundedBSChan
55         BStack
56         ClientCert
57         ClientSessionManager
58         ClientState 
59         Command
60         CommandLine
61         Fingerprint
62         History 
63         GeminiProtocol
64         Identity
65         Marks
66         MetaString
67         Mundanities
68         Opts
69         Pager
70         Prompt
71         Queue 
72         Request
73         ResolveTarget
74         RunExternal
75         ServiceCerts
76         Slurp
77         Target
78         TextGemini
79         URI
80         Util
81         WCWidth
82         Version
84     default-language: Haskell2010
85     ghc-options:      -threaded -Wall
86     build-depends:
87         base >=4.3 && <5,
88         asn1-encoding <0.10,
89         asn1-types >=0.3.4 && <0.4,
90         bytestring >=0.10.4.0 && <0.12,
91         containers >=0.5.5.1 && <0.7,
92         cryptonite >=0.26 && <0.31,
93         data-default-class >=0.1.2.0 && <0.2,
94         data-hash >=0.2.0.1 && <0.3,
95         directory >=1.2.1.0 && <1.4,
96         drunken-bishop >=0.1.0.0 && <0.2,
97         exceptions >=0.10.4 && <0.11,
98         filepath >=1.3.0.2 && <1.5,
99         haskeline ==0.8.*,
100         hourglass >=0.2.12 && <0.3,
101         mime >=0.4.0.2 && <0.5,
102         mtl >=2.1.3.1 && <2.4,
103         memory >=0.14 && <0.19,
104         network >=2.4.2.3 && <3.2,
105         network-simple >=0.4.3 && <0.5,
106         network-uri >=2.6.3.0 && <2.8,
107         parsec >=3.1.5 && <3.2,
108         pem >=0.2.4 && <0.3,
109         process >=1.2.0.0 && <1.7,
110         regex-compat >=0.95.1 && <0.96,
111         rset < 1.1,
112         safe >=0.3.19 && <0.4,
113         temporary ==1.3.*,
114         terminal-size >=0.3.2.1 && <0.4,
115         text >=1.1.0.0 && <2.1,
116         tls >=1.5.4 && <1.7,
117         transformers >=0.3.0.0 && <0.7,
118         x509 >=1.7.5 && <1.8,
119         x509-store >=1.6.7 && <1.7,
120         x509-validation >=1.6.11 && <1.7
122     if os(windows)
123         cpp-options: -DWINDOWS
125     else
126         build-depends: unix >=2.7.0.1 && <2.8
128     if flag(magic)
129         cpp-options:   -DMAGIC
130         build-depends: magic <1.2
132     if flag(irilinks)
133         cpp-options: -DIRILinks
135     if (!os(windows) || flag(libiconv))
136         cpp-options:   -DICONV
137         build-depends: iconv >=0.4.1.3 && <0.5