Skip to content

Instantly share code, notes, and snippets.

@jjant
Created November 1, 2018 00:17
Show Gist options
  • Select an option

  • Save jjant/bddb38626908d998aba52789eab83b53 to your computer and use it in GitHub Desktop.

Select an option

Save jjant/bddb38626908d998aba52789eab83b53 to your computer and use it in GitHub Desktop.
myCoolFunction : Int -> Int
myCoolFunction a =
-- Calls the JS `addTwo` function.
jsCall "addTwo" a
main =
myCoolFunction 3
|> String.fromInt
|> Html.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment