We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7d414e + dbdf521 commit 232f2e2Copy full SHA for 232f2e2
src/Data/Foreign/Class.purs
@@ -53,7 +53,7 @@ instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a) where
53
readElements :: forall a. (IsForeign a) => Array Foreign -> F (Array a)
54
readElements arr = sequence (zipWith readElement (range zero (length arr)) arr)
55
56
- readElement :: forall a. (IsForeign a) => Int -> Foreign -> F (Array a)
+ readElement :: forall a. (IsForeign a) => Int -> Foreign -> F a
57
readElement i value = readWith (ErrorAtIndex i) value
58
59
instance nullIsForeign :: (IsForeign a) => IsForeign (Null a) where
0 commit comments