Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show instance for JSString

  • Loading branch information...
commit bbd6f9ad70a737dcc324c999651629b757378c70 1 parent c199ef6
@norm2782 norm2782 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.