mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 01:41:44 +03:00
9e84b153bd
* Add %foreign_impl pragma for augmenting ffi functions * document how conflicting %foreign_impl are handled
11 lines
230 B
Idris
11 lines
230 B
Idris
import Control.App
|
|
import Control.App.Console
|
|
|
|
%foreign_impl Prelude.IO.prim__fork "javascript:lambda:(proc) => { throw new Error() }"
|
|
|
|
prog : (Console es) => App es ()
|
|
prog = putStrLn "hello, world"
|
|
|
|
main : IO ()
|
|
main = run prog
|