Skip to content

Instantly share code, notes, and snippets.

@odoe
Created January 4, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/15fa18b5ebc81c7c1e4b to your computer and use it in GitHub Desktop.
Save odoe/15fa18b5ebc81c7c1e4b to your computer and use it in GitHub Desktop.
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