Initial commit: Elm tutorial for JavaScript developers

This tutorial includes:
- 7 progressive lessons covering Elm fundamentals
- Exercises with starter code
- Solutions for exercises
- Final project: Task Manager app with localStorage persistence

Topics covered:
- Basic syntax and types
- Functions and functional programming concepts
- The Elm Architecture (Model-View-Update)
- Lists and Maybe types
- HTTP requests and JSON decoding
- Ports for JavaScript interop
This commit is contained in:
2026-03-11 11:07:15 +00:00
commit 7d7986f3ab
16 changed files with 5342 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
module Main exposing (main)
{-| Exercise 1: Hello World
Complete the exercises below by modifying this file.
Exercise 1.1: Change the greeting to say "Hello, [Your Name]!"
Exercise 1.2: Make the greeting ALL CAPS using String.toUpper
Exercise 1.3: Add a second paragraph with your programming experience
Run with: elm reactor
Then open http://localhost:8000/src/Main.elm
-}
import Html exposing (Html, div, h1, p, text)
main : Html msg
main =
div []
[ h1 [] [ text "Hello, Elm!" ]
-- Add more elements here for Exercise 1.3
]