git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix Show String instance
commit6ee00943db091507894d35633e6202e8d24649b3 authorPhil Freeman <paf31@cantab.net> dateWed 9 Apr 2014, 13:02 (13 years ago) parentd02e0e5
1 file changed+6−1
prelude/prelude.purs+6−1
prelude/prelude.purs+6−1
@@ -42,8 +42,13 @@ module Prelude where
4242 class Show a where
4343 show :: a -> String
4444
45+ foreign import showStringImpl
46+ "function showStringImpl(s) {\
47+ \ return JSON.stringify(s);\
48+ \}" :: String -> String
49+
4550 instance showString :: Show String where
46− show s = s
51+ show = showStringImpl
4752
4853 instance showBoolean :: Show Boolean where
4954 show true = "true"