0 | module Data.Mime.Apache.Model
17 | implementation Show MainType where
18 | show Application = "application"
19 | show Audio = "audio"
20 | show Chemical = "chemical"
22 | show Image = "image"
23 | show Message = "message"
24 | show Model = "model"
25 | show Multipart = "multipart"
27 | show Video = "video"
28 | show XConference = "x-conference"
31 | implementation Eq MainType where
32 | (==) Application Application = True
33 | (==) Audio Audio = True
34 | (==) Chemical Chemical = True
35 | (==) Font Font = True
36 | (==) Image Image = True
37 | (==) Message Message = True
38 | (==) Model Model = True
39 | (==) Multipart Multipart = True
40 | (==) Text Text = True
41 | (==) Video Video = True
42 | (==) XConference XConference = True
50 | extensions : List String
53 | implementation Show Mime where
54 | show mime = "\{show mime.mainType}/\{mime.subType}"
57 | implementation Eq Mime where
58 | (==) a b = a.mainType == b.mainType
59 | && a.subType == b.subType
60 | && a.extensions == b.extensions