git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #199 from joneshf/show-array

Sugar up Array show.

commit768b085d7f28499601aa7cd868af1bab56bd6f99 authorPhil Freeman <paf31@cantab.net> dateMon 17 Feb 2014, 11:35 (13 years ago) parent1e3c158c6b37d9
1 file changed+1−1
prelude/prelude.purs+1−1
prelude/prelude.purs+1−1
@@ -636,7 +636,7 @@ module Arrays where
636636
637637 instance (Prelude.Show a) => Prelude.Show [a] where
638638 show [] = "[]"
639− show (x:xs) = show x ++ " : " ++ show xs
639+ show xs = "[" ++ joinWith (map show xs) "," ++ "]"
640640
641641 instance Prelude.Functor [] where
642642 (<$>) = map