Skip to content

Commit 6424a7f

Browse files
author
Poscat
committed
Export unexported
1 parent 67a1d22 commit 6424a7f

2 files changed

Lines changed: 35 additions & 30 deletions

File tree

package.yaml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
name: telegram-types
2-
version: 0.2.1
3-
github: "poscat0x04/telegram-types"
4-
license: BSD3
5-
author: "Poscat"
6-
maintainer: "poscat@mail.poscat.moe"
7-
copyright: "2020 Poscat"
1+
name: telegram-types
2+
version: 0.2.1
3+
github: "poscat0x04/telegram-types"
4+
license: BSD3
5+
author: "Poscat"
6+
maintainer: "poscat@mail.poscat.moe"
7+
copyright: "2020 Poscat"
88

99
extra-source-files:
10-
- README.md
10+
- README.md
1111

1212
# Metadata used when publishing your package
13-
synopsis: Types used in Telegram bot API
14-
category: Web
13+
synopsis: Types used in Telegram bot API
14+
category: Web
1515

1616
# To avoid duplicated efforts in documentation and dealing with the
1717
# complications of embedding Haddock markup inside cabal files, it is
1818
# common to point users to the README.md file.
19-
description: Defines various datatypes and their serialization methods useful for writing bindings to Telegram bot API.
19+
description: Defines various datatypes and their serialization methods useful for writing bindings to Telegram bot API.
2020

2121
dependencies:
22-
- base >= 4.7 && < 5
23-
- text >= 1.2.4.0 && < 1.3
24-
- bytestring >= 0.10.10.0 && < 0.11
25-
- filepath >= 1.4.2.1 && < 1.5
26-
- aeson >= 1.4.7.1 && < 1.5
27-
- deriving-aeson >= 0.2.3 && < 0.3
28-
- open-union >= 0.4.0.0 && < 0.5
29-
- mime-types >= 0.1.0.9 && < 0.2
30-
- servant >= 0.16.2 && < 0.17
31-
- servant-multipart >= 0.11.5 && < 0.12
32-
- lens >= 4.18.1 && < 4.19
33-
- generic-lens >= 1.2.0.1 && < 1.3
22+
- base >= 4.7 && < 5
23+
- text >= 1.2.4.0 && < 1.3
24+
- bytestring >= 0.10.10.0 && < 0.11
25+
- filepath >= 1.4.2.1 && < 1.5
26+
- aeson >= 1.4.7.1 && < 1.5
27+
- deriving-aeson >= 0.2.3 && < 0.3
28+
- open-union >= 0.4.0.0 && < 0.5
29+
- mime-types >= 0.1.0.9 && < 0.2
30+
- servant >= 0.16.2 && < 0.17
31+
- servant-multipart >= 0.11.5 && < 0.12
32+
- lens >= 4.18.1 && < 4.19
33+
- generic-lens >= 1.2.0.1 && < 1.3
3434

3535
library:
3636
source-dirs: src
@@ -39,18 +39,19 @@ library:
3939
- Web.Telegram.Types.Lens
4040
- Web.Telegram.Types.Stock
4141
- Web.Telegram.Types.Interaction
42+
- Web.Telegram.Types.Passport
4243
- Web.Telegram.Types.Inline
4344
- Web.Telegram.Types.Input
4445
- Web.Telegram.Types.Update
4546
- Web.Telegram.Types.UpdateType
4647

4748
tests:
4849
telegram-types-test:
49-
main: Spec.hs
50-
source-dirs: test
50+
main: Spec.hs
51+
source-dirs: test
5152
ghc-options:
52-
- -threaded
53-
- -rtsopts
54-
- -with-rtsopts=-N
53+
- -threaded
54+
- -rtsopts
55+
- -with-rtsopts=-N
5556
dependencies:
56-
- telegram-types
57+
- telegram-types

src/Web/Telegram/Types.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ module Web.Telegram.Types
1111
Message (..),
1212
MessageMetadata (..),
1313
MessageEntity (..),
14+
MessageEntityType (..),
1415
MessageContent (..),
1516
ParseMode (..),
1617

1718
-- ** Chat
1819
ChatId (..),
1920
Chat (..),
21+
ChatType (..),
2022
ChatPermissions (..),
2123
ChatPhoto (..),
2224
ChatStatus (..),
@@ -75,8 +77,10 @@ module Web.Telegram.Types
7577
StickerSet (..),
7678
MaskPosition (..),
7779

78-
-- *** Misc
80+
-- *** Payment
7981
SuccessfulPayment (..),
82+
OrderInfo (..),
83+
ShippingAddress (..),
8084

8185
-- *** Utilities
8286
coe,

0 commit comments

Comments
 (0)