Client side API for communicating with a mattermost server in Haskell
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mattermost-api.cabal 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. name: mattermost-api
  2. version: 40000.1.0
  3. synopsis: Client API for Mattermost chat system
  4. description: Client API for Mattermost chat system
  5. license: BSD3
  6. license-file: LICENSE
  7. author: Jason Dagit
  8. maintainer: dagitj@gmail.com
  9. copyright: 2016-2017 Jason Dagit, Getty Ritter, Jonathan Daugherty
  10. category: Web
  11. build-type: Simple
  12. extra-doc-files: README.md,
  13. CHANGELOG.md
  14. cabal-version: >=1.18
  15. tested-with: GHC == 7.10.3, GHC == 8.0.1
  16. source-repository head
  17. type: git
  18. location: https://github.com/matterhorn-chat/mattermost-api.git
  19. flag build-examples
  20. description: Build example applications
  21. default: False
  22. library
  23. exposed-modules: Network.Mattermost
  24. Network.Mattermost.Exceptions
  25. Network.Mattermost.Lenses
  26. Network.Mattermost.Logging
  27. Network.Mattermost.Util
  28. Network.Mattermost.WebSocket
  29. Network.Mattermost.WebSocket.Types
  30. Network.Mattermost.Version
  31. Network.Mattermost.Types
  32. Network.Mattermost.Types.Base
  33. Network.Mattermost.Types.Internal
  34. other-modules: Network.Mattermost.TH
  35. Paths_mattermost_api
  36. -- other-extensions:
  37. build-depends: base >=4.4 && <5
  38. , websockets >= 0.11.0.0
  39. , stm
  40. , aeson >= 1.0.0.0
  41. , connection
  42. , memory <0.14.3
  43. -- To prevent broken websockets versions from using
  44. -- incompatible versions of binary (for details, see
  45. -- https://github.com/matterhorn-chat/mattermost-api/issues/36):
  46. , binary >= 0.8.1
  47. , bytestring
  48. , process
  49. , HTTP
  50. , network-uri
  51. , text
  52. , time
  53. , unordered-containers
  54. , hashable
  55. , containers
  56. , gitrev
  57. , template-haskell
  58. , microlens
  59. , microlens-th
  60. -- Only here to make debugging easier
  61. , pretty-show
  62. hs-source-dirs: src
  63. default-language: Haskell2010
  64. ghc-options: -Wall
  65. executable mm-get-teams
  66. if !flag(build-examples)
  67. buildable: False
  68. default-language: Haskell2010
  69. main-is: GetTeams.hs
  70. other-modules: Config
  71. LocalConfig
  72. hs-source-dirs: examples
  73. build-depends: base
  74. , mattermost-api
  75. , aeson
  76. , text
  77. , connection
  78. , process
  79. , unordered-containers
  80. , pretty-show
  81. executable mm-get-channels
  82. if !flag(build-examples)
  83. buildable: False
  84. default-language: Haskell2010
  85. main-is: GetChannels.hs
  86. other-modules: Config
  87. LocalConfig
  88. hs-source-dirs: examples
  89. build-depends: base
  90. , mattermost-api
  91. , aeson
  92. , text
  93. , connection
  94. , process
  95. , unordered-containers
  96. , pretty-show
  97. executable mm-get-posts
  98. if !flag(build-examples)
  99. buildable: False
  100. default-language: Haskell2010
  101. main-is: GetPosts.hs
  102. other-modules: Config
  103. LocalConfig
  104. hs-source-dirs: examples
  105. build-depends: base
  106. , mattermost-api
  107. , aeson
  108. , text
  109. , connection
  110. , process
  111. , unordered-containers
  112. , pretty-show
  113. executable mm-make-post
  114. if !flag(build-examples)
  115. buildable: False
  116. default-language: Haskell2010
  117. main-is: MakePost.hs
  118. other-modules: Config
  119. LocalConfig
  120. hs-source-dirs: examples
  121. build-depends: base
  122. , mattermost-api
  123. , aeson
  124. , text
  125. , connection
  126. , process
  127. , unordered-containers
  128. , pretty-show
  129. executable mm-get-websocket-connection
  130. if !flag(build-examples)
  131. buildable: False
  132. default-language: Haskell2010
  133. main-is: GetWebsocketConnection.hs
  134. other-modules: Config
  135. LocalConfig
  136. hs-source-dirs: examples
  137. build-depends: base
  138. , mattermost-api
  139. , aeson
  140. , text
  141. , connection
  142. , process
  143. , unordered-containers
  144. , pretty-show
  145. executable mm-show-raw-events
  146. if !flag(build-examples)
  147. buildable: False
  148. default-language: Haskell2010
  149. main-is: ShowRawEvents.hs
  150. other-modules: Config
  151. LocalConfig
  152. hs-source-dirs: examples
  153. build-depends: base
  154. , mattermost-api
  155. , aeson
  156. , text
  157. , connection
  158. , process
  159. , unordered-containers
  160. , pretty-show
  161. test-suite test-mm-api
  162. type: exitcode-stdio-1.0
  163. ghc-options: -Wall
  164. default-language: Haskell2010
  165. hs-source-dirs: test
  166. main-is: Main.hs
  167. other-modules: Tests.Util
  168. Tests.Types
  169. build-depends: base
  170. , mtl
  171. , stm
  172. , mattermost-api
  173. , tasty
  174. , tasty-hunit
  175. , HUnit
  176. , text
  177. , pretty-show
  178. , unordered-containers
  179. , containers
  180. , aeson