Created
January 4, 2015 22:59
-
-
Save odoe/15fa18b5ebc81c7c1e4b to your computer and use it in GitHub Desktop.
PureScript foreign import example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ["s", ""] | |
foreign import map' | |
""" | |
function (s) { --"s" | |
return function() { -- "" | |
return L.map(s); | |
} | |
} | |
""" :: forall eff. String -> Eff (m :: Mutable | eff) LMap | |
-- I think this is why the easy-ffi syntax is like this: | |
-- map' = ffi ["s", ""] "L.map(s)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment