0 | module Web.Internal.ClipboardTypes
11 | namespace PresentationStyle
14 | data PresentationStyle = Unspecified | Inline | Attachment
17 | Show PresentationStyle where
18 | show Unspecified = "unspecified"
19 | show Inline = "inline"
20 | show Attachment = "attachment"
23 | Eq PresentationStyle where
24 | (==) = (==) `on` show
27 | Ord PresentationStyle where
28 | compare = compare `on` show
31 | read : String -> Maybe PresentationStyle
32 | read "unspecified" = Just Unspecified
33 | read "inline" = Just Inline
34 | read "attachment" = Just Attachment
38 | ToFFI PresentationStyle String where
42 | FromFFI PresentationStyle String where
51 | export data Clipboard : Type where [external]
54 | ToFFI Clipboard Clipboard where toFFI = id
57 | FromFFI Clipboard Clipboard where fromFFI = Just
60 | SafeCast Clipboard where
61 | safeCast = unsafeCastOnPrototypeName "Clipboard"
63 | export data ClipboardEvent : Type where [external]
66 | ToFFI ClipboardEvent ClipboardEvent where toFFI = id
69 | FromFFI ClipboardEvent ClipboardEvent where fromFFI = Just
72 | SafeCast ClipboardEvent where
73 | safeCast = unsafeCastOnPrototypeName "ClipboardEvent"
75 | export data ClipboardItem : Type where [external]
78 | ToFFI ClipboardItem ClipboardItem where toFFI = id
81 | FromFFI ClipboardItem ClipboardItem where fromFFI = Just
84 | SafeCast ClipboardItem where
85 | safeCast = unsafeCastOnPrototypeName "ClipboardItem"
92 | export data ClipboardEventInit : Type where [external]
95 | ToFFI ClipboardEventInit ClipboardEventInit where toFFI = id
98 | FromFFI ClipboardEventInit ClipboardEventInit where fromFFI = Just
100 | export data ClipboardItemOptions : Type where [external]
103 | ToFFI ClipboardItemOptions ClipboardItemOptions where toFFI = id
106 | FromFFI ClipboardItemOptions ClipboardItemOptions where fromFFI = Just
108 | export data ClipboardPermissionDescriptor : Type where [external]
111 | ToFFI ClipboardPermissionDescriptor ClipboardPermissionDescriptor where toFFI = id
114 | FromFFI ClipboardPermissionDescriptor ClipboardPermissionDescriptor where fromFFI = Just
122 | export data ClipboardItemDelayedCallback : Type where [external]
125 | ToFFI ClipboardItemDelayedCallback ClipboardItemDelayedCallback where toFFI = id
128 | FromFFI ClipboardItemDelayedCallback ClipboardItemDelayedCallback where fromFFI = Just