Created
March 26, 2019 23:29
-
-
Save donald-pinckney/27413e028c6f03e3b66bc144b36341c2 to your computer and use it in GitHub Desktop.
Idris Function Exported to JavaScript
This file contains hidden or 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
module MyFunction | |
export -- This is new | |
hello : String -> String | |
hello req = "Hello: " ++ req | |
-- This is all new | |
lib : FFI_Export FFI_JS "" [] | |
lib = | |
Fun hello "hello" $ | |
End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment