Skip to content

Commit f3825cd

Browse files
committed
Merge pull request #35 from tfausak/patch-1
Don't shadow type variables
2 parents 232f2e2 + 810839e commit f3825cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Foreign/Class.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ instance intIsForeign :: IsForeign Int where
5050
instance arrayIsForeign :: (IsForeign a) => IsForeign (Array a) where
5151
read value = readArray value >>= readElements
5252
where
53-
readElements :: forall a. (IsForeign a) => Array Foreign -> F (Array a)
53+
readElements :: 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 a
56+
readElement :: 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)