Permalink
Browse files

Show instance for JSString

  • Loading branch information...
1 parent c199ef6 commit bbd6f9ad70a737dcc324c999651629b757378c70 @norm2782 norm2782 committed Oct 31, 2011
View
2 tests/works/data_export_plain/data_export_plain.hs
@@ -18,7 +18,7 @@ data Book
, author :: JSString
, count :: Int
}
- {- deriving Show-}
+ deriving Show
add :: Int -> Int -> Int
add x y = y + x
View
3 uhc-jscript/src/Language/UHC/JScript/ECMA/String.hs
@@ -6,6 +6,9 @@ import Language.UHC.JScript.Types
type JSString = PackedString
+instance Show JSString where
+ show = jsStringToString
+
instance ToJS String JSString where
toJS = stringToJSString

0 comments on commit bbd6f9a

Please sign in to comment.