mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
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
|