diff --git a/index.html b/index.html new file mode 100644 index 000000000..2736b8441 --- /dev/null +++ b/index.html @@ -0,0 +1,22 @@ + + + + + Main + + + + + + + + \ No newline at end of file diff --git a/src/Main.elm b/src/Main.elm new file mode 100644 index 000000000..47b3d3846 --- /dev/null +++ b/src/Main.elm @@ -0,0 +1,18 @@ +module Main exposing (main) + +import System.IO as IO exposing (IO) + + +main : IO.Program +main = + IO.run app + + +app : IO () +app = + IO.pure 1 + |> IO.fmap ((+) 2) + |> IO.fmap String.fromInt + |> IO.bind (IO.hPutStr IO.stdout) + |> IO.bind (\() -> IO.getLine) + |> IO.bind (\name -> IO.hPutStr IO.stdout ("Hello " ++ name))