Skip to content

Commit 88c17bd

Browse files
author
Mike Solomon
committed
Adds test
1 parent 510a036 commit 88c17bd

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

src/Web/GPU/Internal/RequiredAndOptional.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ e
4545
:: forall nt optional
4646
. Newtype nt (RequiredAndOptional () optional)
4747
=> nt
48-
e = unsafeCoerce {}
48+
e = unsafeCoerce {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module Test.Types.RequiredAndOptiona where
2+
3+
import Prelude
4+
5+
import Data.Foldable (for_)
6+
import Effect (Effect)
7+
import Web.GPU.GPU (requestAdapter)
8+
9+
import Web.GPU.Internal.RequiredAndOptional ((~))
10+
import Web.GPU.Navigator (gpu)
11+
import Web.HTML (window)
12+
import Web.HTML.Window (navigator)
13+
14+
test1 :: Effect Unit
15+
test1 = do
16+
w <- window
17+
n <- navigator w
18+
g' <- gpu n
19+
for_ g' \g -> do
20+
_ <- requestAdapter g ({} ~ {})
21+
pure unit

0 commit comments

Comments
 (0)