Skip to content

Commit ef8c4f1

Browse files
committed
Define a KnownType instance for ElementArray.
1 parent 0f1218d commit ef8c4f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/GL/Buffer.hs

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ class KnownType (ty :: Type) where
8181
instance KnownType 'Array where
8282
typeVal _ = Array
8383

84+
instance KnownType 'ElementArray where
85+
typeVal _ = ElementArray
86+
8487
instance GL.Enum Type where
8588
glEnum = \case
8689
Array -> GL_ARRAY_BUFFER

0 commit comments

Comments
 (0)