Skip to content

Instantly share code, notes, and snippets.

@odoe

odoe/sample.purs

Created Jan 4, 2015
Embed
What would you like to do?
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