diff options
author | Joe Crayne <joe@jerkface.net> | 2019-05-19 23:43:15 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2019-05-19 23:43:15 -0400 |
commit | bc6fd1c71e22ef54a4aed8774dcec4dd190b9dbc (patch) | |
tree | 67ce581d7ce8532ebffea9375153dcb1a869c55d /AttributeData.hs | |
parent | 2d89afcf5a50aac49709c90a293374b18aaa2db2 (diff) |
Fleshed-out Data instance for AttributeKey.
Diffstat (limited to 'AttributeData.hs')
-rw-r--r-- | AttributeData.hs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/AttributeData.hs b/AttributeData.hs index 59b9e6d..d962a06 100644 --- a/AttributeData.hs +++ b/AttributeData.hs | |||
@@ -41,35 +41,6 @@ import Control.Monad.State.Lazy | |||
41 | 41 | ||
42 | import MaskableStream | 42 | import MaskableStream |
43 | 43 | ||
44 | data Witness c = c => Witness | ||
45 | |||
46 | tagTypable :: TypeTag c -> Witness (Typeable c) | ||
47 | tagTypable TypeBool = Witness | ||
48 | tagTypable TypeV2B = Witness | ||
49 | tagTypable TypeV3B = Witness | ||
50 | tagTypable TypeV4B = Witness | ||
51 | tagTypable TypeWord = Witness | ||
52 | tagTypable TypeV2U = Witness | ||
53 | tagTypable TypeV3U = Witness | ||
54 | tagTypable TypeV4U = Witness | ||
55 | tagTypable TypeInt = Witness | ||
56 | tagTypable TypeV2I = Witness | ||
57 | tagTypable TypeV3I = Witness | ||
58 | tagTypable TypeV4I = Witness | ||
59 | tagTypable TypeFloat = Witness | ||
60 | tagTypable TypeV2F = Witness | ||
61 | tagTypable TypeV3F = Witness | ||
62 | tagTypable TypeV4F = Witness | ||
63 | tagTypable TypeM22F = Witness | ||
64 | tagTypable TypeM23F = Witness | ||
65 | tagTypable TypeM24F = Witness | ||
66 | tagTypable TypeM32F = Witness | ||
67 | tagTypable TypeM33F = Witness | ||
68 | tagTypable TypeM34F = Witness | ||
69 | tagTypable TypeM42F = Witness | ||
70 | tagTypable TypeM43F = Witness | ||
71 | tagTypable TypeM44F = Witness | ||
72 | |||
73 | 44 | ||
74 | lookupAttrKeys :: forall attrkeys. Data attrkeys => (String -> Maybe (Some AttributeKey)) -> Maybe attrkeys | 45 | lookupAttrKeys :: forall attrkeys. Data attrkeys => (String -> Maybe (Some AttributeKey)) -> Maybe attrkeys |
75 | lookupAttrKeys lookupA = do | 46 | lookupAttrKeys lookupA = do |