File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
# purescript-foreign
2
2
3
- [ ![ Latest release] ( http://img.shields.io/bower/v/purescript-foreign.svg )] ( https://github.com/purescript/purescript-foreign/releases )
4
- [ ![ Build Status] ( https://travis-ci.org/purescript/purescript-foreign.svg?branch=master )] ( https://travis-ci.org/purescript/purescript-foreign )
5
- [ ![ Dependency Status] ( https://www.versioneye.com/user/projects/55848c14363861001d00030e/badge.svg?style=flat )] ( https://www.versioneye.com/user/projects/55848c14363861001d00030e )
3
+ [ ![ Latest release] ( http://img.shields.io/github/release/purescript/purescript-foreign.svg )] ( https://github.com/purescript/purescript-foreign/releases )
4
+ [ ![ Build status] ( https://travis-ci.org/purescript/purescript-foreign.svg?branch=master )] ( https://travis-ci.org/purescript/purescript-foreign )
6
5
7
6
Library for dealing with foreign data (JSON and JavaScript objects).
8
7
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ instance intIsForeign :: IsForeign Int where
57
57
read = readInt
58
58
59
59
instance arrayIsForeign :: IsForeign a => IsForeign (Array a ) where
60
- read value = readArray value >>= readElements
60
+ read = readArray >=> readElements
61
61
where
62
62
readElements :: Array Foreign -> F (Array a )
63
63
readElements arr = sequence (zipWith readElement (range zero (length arr)) arr)
You can’t perform that action at this time.
0 commit comments