We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 510a036 commit 88c17bdCopy full SHA for 88c17bd
2 files changed
src/Web/GPU/Internal/RequiredAndOptional.purs
@@ -45,4 +45,4 @@ e
45
:: forall nt optional
46
. Newtype nt (RequiredAndOptional () optional)
47
=> nt
48
-e = unsafeCoerce {}
+e = unsafeCoerce {}
test/Types/RequiredAndOptional.purs
@@ -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