Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modify data export example to use import sugar

  • Loading branch information...
commit 88033775b2e36868ee54fffa7a5ed932f30cab2c 1 parent 0a97526
Jurriën Stutterheim norm2782 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/works/data_export_plain/data_export_plain.hs
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
Please sign in to comment.
Something went wrong with that request. Please try again.