summaryrefslogtreecommitdiff
path: root/AttributeData.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-05-19 23:43:15 -0400
committerJoe Crayne <joe@jerkface.net>2019-05-19 23:43:15 -0400
commitbc6fd1c71e22ef54a4aed8774dcec4dd190b9dbc (patch)
tree67ce581d7ce8532ebffea9375153dcb1a869c55d /AttributeData.hs
parent2d89afcf5a50aac49709c90a293374b18aaa2db2 (diff)
Fleshed-out Data instance for AttributeKey.
Diffstat (limited to 'AttributeData.hs')
-rw-r--r--AttributeData.hs29
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
42import MaskableStream 42import MaskableStream
43 43
44data Witness c = c => Witness
45
46tagTypable :: TypeTag c -> Witness (Typeable c)
47tagTypable TypeBool = Witness
48tagTypable TypeV2B = Witness
49tagTypable TypeV3B = Witness
50tagTypable TypeV4B = Witness
51tagTypable TypeWord = Witness
52tagTypable TypeV2U = Witness
53tagTypable TypeV3U = Witness
54tagTypable TypeV4U = Witness
55tagTypable TypeInt = Witness
56tagTypable TypeV2I = Witness
57tagTypable TypeV3I = Witness
58tagTypable TypeV4I = Witness
59tagTypable TypeFloat = Witness
60tagTypable TypeV2F = Witness
61tagTypable TypeV3F = Witness
62tagTypable TypeV4F = Witness
63tagTypable TypeM22F = Witness
64tagTypable TypeM23F = Witness
65tagTypable TypeM24F = Witness
66tagTypable TypeM32F = Witness
67tagTypable TypeM33F = Witness
68tagTypable TypeM34F = Witness
69tagTypable TypeM42F = Witness
70tagTypable TypeM43F = Witness
71tagTypable TypeM44F = Witness
72
73 44
74lookupAttrKeys :: forall attrkeys. Data attrkeys => (String -> Maybe (Some AttributeKey)) -> Maybe attrkeys 45lookupAttrKeys :: forall attrkeys. Data attrkeys => (String -> Maybe (Some AttributeKey)) -> Maybe attrkeys
75lookupAttrKeys lookupA = do 46lookupAttrKeys lookupA = do