Skip to content

Commit 820f11f

Browse files
author
Mike Solomon
committed
Adds missing newtypes
1 parent 3b6e5a7 commit 820f11f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/Web/GPU/GPUBlendComponent.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Web.GPU.GPUBlendComponent where
22

3+
import Data.Newtype (class Newtype)
34
import Web.GPU.GPUBlendFactor (GPUBlendFactor)
45
import Web.GPU.GPUBlendOperation (GPUBlendOperation)
56
import Web.GPU.Internal.RequiredAndOptional (RequiredAndOptional)
@@ -10,4 +11,6 @@ newtype GPUBlendComponent = GPUBlendComponent
1011
, srcFactor :: GPUBlendFactor
1112
, dstFactor :: GPUBlendFactor
1213
)
13-
)
14+
)
15+
16+
derive instance Newtype GPUBlendComponent _

src/Web/GPU/GPURenderPassDescriptor.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Web.GPU.GPURenderPassDescriptor where
22

3+
import Data.Newtype (class Newtype)
34
import Web.GPU.GPURenderPassColorAttachment (GPURenderPassColorAttachment)
45
import Web.GPU.GPURenderPassDepthStencilAttachment (GPURenderPassDepthStencilAttachment)
56
import Web.GPU.GPURenderPassTimestampWrite (GPURenderPassTimestampWrite)
@@ -16,4 +17,6 @@ newtype GPURenderPassDescriptor = GPURenderPassDescriptor
1617
, maxDrawCount :: GPUSize64
1718
, label :: String
1819
)
19-
)
20+
)
21+
22+
derive instance Newtype GPURenderPassDescriptor _

0 commit comments

Comments
 (0)