Skip to content

Commit 232f2e2

Browse files
committed
Merge pull request #33 from purescript/ArrayIsForeignError
Fix type error spotted by latest compiler
2 parents a7d414e + dbdf521 commit 232f2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Foreign/Class.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a) where
5353
readElements :: forall a. (IsForeign a) => Array Foreign -> F (Array a)
5454
readElements arr = sequence (zipWith readElement (range zero (length arr)) arr)
5555

56-
readElement :: forall a. (IsForeign a) => Int -> Foreign -> F (Array a)
56+
readElement :: forall a. (IsForeign a) => Int -> Foreign -> F a
5757
readElement i value = readWith (ErrorAtIndex i) value
5858

5959
instance nullIsForeign :: (IsForeign a) => IsForeign (Null a) where

0 commit comments

Comments
 (0)