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 232f2e2 + 810839e commit f3825cdCopy full SHA for f3825cd
src/Data/Foreign/Class.purs
@@ -50,10 +50,10 @@ instance intIsForeign :: IsForeign Int where
50
instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a) where
51
read value = readArray value >>= readElements
52
where
53
- readElements :: forall a. (IsForeign a) => Array Foreign -> F (Array a)
+ readElements :: 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 a
+ readElement :: 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