@@ -20,10 +20,10 @@ import Data.Text (Text)
2020
2121-- | Comments
2222data Comment = Comment
23- { commentBody :: Text -- ^ Body of comment
24- , commentAttachments :: [Attachment ] -- ^ Attachment
25- , commentPublic :: Bool -- ^ Flag of whether comment should be public
26- , commentAuthor :: Integer -- ^ Auther of comment
23+ { commentBody :: ! Text -- ^ Body of comment
24+ , commentAttachments :: ! [Attachment ] -- ^ Attachment
25+ , commentPublic :: ! Bool -- ^ Flag of whether comment should be public
26+ , commentAuthor :: ! Integer -- ^ Auther of comment
2727 } deriving (Show , Eq )
2828
2929-- | Outer comment ??
@@ -33,29 +33,29 @@ newtype CommentOuter = CommentOuter {
3333
3434-- | Attachment of the ticket
3535data Attachment = Attachment
36- { attachmentURL :: Text -- ^ URL of the attachment
37- , attachmentContentType :: Text -- ^ ContentType of the attachment
38- , attachmentSize :: Int -- ^ Attachment size
36+ { attachmentURL :: ! Text -- ^ URL of the attachment
37+ , attachmentContentType :: ! Text -- ^ ContentType of the attachment
38+ , attachmentSize :: ! Int -- ^ Attachment size
3939 } deriving (Show , Eq )
4040
4141-- | Zendexk ticket
4242data Ticket = Ticket
43- { ticketComment :: Comment -- ^ Ticket comment
44- , ticketAssignee :: Integer -- ^ Assignee of the ticket
45- , ticketTag :: [ Text ] -- ^ Tags attached to ticket
43+ { ticketComment :: ! Comment -- ^ Ticket comment
44+ , ticketAssignee :: ! Integer -- ^ Assignee of the ticket
45+ , ticketTag :: ! [ Text ] -- ^ Tags attached to ticket
4646 } deriving (Show , Eq )
4747
4848-- | List of zendesk ticket
4949data TicketList = TicketList
50- { ticketListTickets :: [ TicketInfo ] -- ^ Information of tickets
50+ { ticketListTickets :: ! [ TicketInfo ] -- ^ Information of tickets
5151 , nextPage :: Maybe Text -- ^ Next page
5252 } deriving (Show , Eq )
5353
5454type TicketId = Int
5555
5656data TicketInfo = TicketInfo
57- { ticketId :: Int -- ^ Id of an ticket
58- , ticketTags :: [Text ] -- ^ Tags associated with ticket
57+ { ticketId :: ! Int -- ^ Id of an ticket
58+ , ticketTags :: ! [Text ] -- ^ Tags associated with ticket
5959 } deriving (Eq )
6060
6161instance Show TicketInfo where
0 commit comments