Browse files

Modify data export example to use import sugar

  • Loading branch information...
1 parent 0a97526 commit 88033775b2e36868ee54fffa7a5ed932f30cab2c @norm2782 norm2782 committed Oct 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/works/data_export_plain/data_export_plain.hs
View
3 tests/works/data_export_plain/data_export_plain.hs
@@ -29,5 +29,6 @@ myBook = Book (stringToJSString "story") (stringToJSString "me") 123
{- foreign export jscript "myBook" myBook :: Book-}
foreign export jscript "{myBook}" myBook :: Book
-foreign import jscript "myBook()" myBookPtr :: JSBook
+{- foreign import jscript "myBook()" myBookPtr :: JSBook-}
+foreign import jscript "{myBook}" myBookPtr :: JSBook

0 comments on commit 8803377

Please sign in to comment.