PureScript foreign import example
-- ["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