Skip to content

Commit ab55c11

Browse files
Reformat using cabal-gild
1 parent c4e5cb9 commit ab55c11

File tree

2 files changed

+89
-75
lines changed

2 files changed

+89
-75
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
buildInputs = with pkgs.myHaskellPackages; [
9191
cabal-install
9292
doctest
93+
cabal-gild
9394
hlint
9495
pkgs.haskell-language-server
9596
pkgs.ghcid

matrix-client.cabal

Lines changed: 88 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,100 @@
1-
cabal-version: 2.4
2-
name: matrix-client
3-
version: 0.1.6.0
4-
synopsis: A matrix client library
1+
cabal-version: 2.4
2+
name: matrix-client
3+
version: 0.1.6.0
4+
synopsis: A matrix client library
55
description:
6-
Matrix client is a library to interface with https://matrix.org.
7-
.
8-
Use this library to interact with matrix server.
9-
.
10-
Read the "Network.Matrix.Tutorial" for a detailed tutorial.
11-
.
12-
Please see the README at https://github.com/softwarefactory-project/matrix-client-haskell#readme
13-
.
14-
homepage: https://github.com/softwarefactory-project/matrix-client-haskell#readme
15-
bug-reports: https://github.com/softwarefactory-project/matrix-client-haskell/issues
16-
license: Apache-2.0
17-
license-file: LICENSE
18-
author: Tristan de Cacqueray
19-
maintainer: [email protected]
20-
copyright: 2021 Red Hat
21-
category: Network
22-
build-type: Simple
23-
extra-doc-files: CHANGELOG.md
24-
extra-source-files: test/data/*.json
25-
tested-with: GHC == 9.6.6
6+
Matrix client is a library to interface with https://matrix.org.
7+
.
8+
Use this library to interact with matrix server.
9+
.
10+
Read the "Network.Matrix.Tutorial" for a detailed tutorial.
11+
.
12+
Please see the README at https://github.com/softwarefactory-project/matrix-client-haskell#readme
13+
.
14+
15+
homepage: https://github.com/softwarefactory-project/matrix-client-haskell#readme
16+
bug-reports: https://github.com/softwarefactory-project/matrix-client-haskell/issues
17+
license: Apache-2.0
18+
license-file: LICENSE
19+
author: Tristan de Cacqueray
20+
maintainer: [email protected]
21+
copyright: 2021 Red Hat
22+
category: Network
23+
build-type: Simple
24+
extra-doc-files: CHANGELOG.md
25+
extra-source-files: test/data/*.json
26+
tested-with: ghc ==9.6.6
2627

2728
source-repository head
28-
type: git
29-
location: https://github.com/softwarefactory-project/matrix-client-haskell.git
29+
type: git
30+
location: https://github.com/softwarefactory-project/matrix-client-haskell.git
3031

3132
common common-options
32-
build-depends: base >= 4.11.0.0 && < 5
33-
, aeson-casing >= 0.2.0.0 && < 0.3.0.0
34-
, aeson >= 1.0.0.0 && < 3
35-
ghc-options: -Wall
36-
-Wcompat
37-
-Widentities
38-
-Wincomplete-uni-patterns
39-
-Wincomplete-record-updates
40-
-Wredundant-constraints
41-
--write-ghc-environment-files=always
42-
if impl(ghc >= 8.2)
43-
ghc-options: -fhide-source-paths
44-
if impl(ghc >= 8.4)
45-
ghc-options: -Wmissing-export-lists
33+
build-depends:
34+
aeson >=1.0.0.0 && <3,
35+
aeson-casing >=0.2.0.0 && <0.3.0.0,
36+
base >=4.11.0.0 && <5,
37+
38+
ghc-options:
39+
-Wall
40+
-Wcompat
41+
-Widentities
42+
-Wincomplete-uni-patterns
43+
-Wincomplete-record-updates
44+
-Wredundant-constraints
45+
46+
--write-ghc-environment-files=always
47+
if impl(ghc >=8.2)
48+
ghc-options: -fhide-source-paths
4649

47-
default-language: Haskell2010
50+
if impl(ghc >=8.4)
51+
ghc-options: -Wmissing-export-lists
52+
default-language: Haskell2010
4853

4954
common lib-depends
50-
build-depends: SHA ^>= 1.6
51-
, base64 >= 1.0
52-
, bytestring >= 0.11.3 && < 0.13
53-
, containers >= 0.6.5 && < 0.8
54-
, exceptions >= 0.10.4 && < 0.11
55-
, hashable >= 1.4.0 && < 1.5
56-
, http-client >= 0.5.0 && < 0.8
57-
, http-client-tls >= 0.2.0 && < 0.4
58-
, http-types >= 0.10.0 && < 0.13
59-
, network-uri >= 2.6.4 && < 2.7
60-
, profunctors >= 5.6.2 && < 5.7
61-
, retry >= 0.8 && < 0.10
62-
, text >= 0.11.1.0 && < 3
63-
, time >= 1.11.1 && < 1.13
64-
, unordered-containers >= 0.2.17 && < 0.3
55+
build-depends:
56+
SHA ^>=1.6,
57+
base64 >=1.0,
58+
bytestring >=0.11.3 && <0.13,
59+
containers >=0.6.5 && <0.8,
60+
exceptions >=0.10.4 && <0.11,
61+
hashable >=1.4.0 && <1.5,
62+
http-client >=0.5.0 && <0.8,
63+
http-client-tls >=0.2.0 && <0.4,
64+
http-types >=0.10.0 && <0.13,
65+
network-uri >=2.6.4 && <2.7,
66+
profunctors >=5.6.2 && <5.7,
67+
retry >=0.8 && <0.10,
68+
text >=0.11.1.0 && <3,
69+
time >=1.11.1 && <1.13,
70+
unordered-containers >=0.2.17 && <0.3,
6571

6672
library
67-
import: common-options, lib-depends
68-
hs-source-dirs: src
69-
exposed-modules: Network.Matrix.Client
70-
, Network.Matrix.Client.Lens
71-
, Network.Matrix.Identity
72-
, Network.Matrix.Tutorial
73-
other-modules: Network.Matrix.Events
74-
, Network.Matrix.Internal
75-
, Network.Matrix.Room
73+
import: common-options, lib-depends
74+
hs-source-dirs: src
75+
exposed-modules:
76+
Network.Matrix.Client
77+
Network.Matrix.Client.Lens
78+
Network.Matrix.Identity
79+
Network.Matrix.Tutorial
80+
81+
other-modules:
82+
Network.Matrix.Events
83+
Network.Matrix.Internal
84+
Network.Matrix.Room
7685

7786
test-suite unit
78-
import: common-options, lib-depends
79-
type: exitcode-stdio-1.0
80-
hs-source-dirs: test, src
81-
main-is: Spec.hs
82-
build-depends: base
83-
, bytestring
84-
, aeson-pretty
85-
, hspec >= 2
86-
, matrix-client
87-
, text
87+
import: common-options, lib-depends
88+
type: exitcode-stdio-1.0
89+
hs-source-dirs:
90+
test
91+
src
92+
93+
main-is: Spec.hs
94+
build-depends:
95+
aeson-pretty,
96+
base,
97+
bytestring,
98+
hspec >=2,
99+
matrix-client,
100+
text,

0 commit comments

Comments
 (0)