Skip to content

Commit 810839e

Browse files
committed
Don't shadow type variables
The PureScript compiler warns about shadowed type variables as of 0.7.6.
1 parent 232f2e2 commit 810839e

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)