-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
def f (s : List String) : IO String := do
for i in s do
if !(← System.FilePath.pathExists <| (← IO.currentDir) / i) then
throw <| IO.userError s!"{i} missing!"
return String.join <| (s!"<img src=\"/{·}\">") <$> s
def imgs := ["lean-anime.jpg", "proglang.png", "lean-tactics.png", "purity.png", "proglangs.jpg", "imax.jpg", "switch.jpg", "bad-apple.png", "lean-hands.png", "donotlean.jpg", "lean-inside.jpg", "lean-board-game.jpg", "operator.png", "universes.png", "lean-junk.png", "worksheet.jpg", "lean-box.jpg", "lean-sign.jpg", "flt.png", "lean-phone.png", "fbip.jpg", "discrimination.png", "cuisine.jpg"]
def dafny_imgs := ["who-would-win.jpg", "class-change.png", "flt-dafny.png"]
def main := do
IO.println s!"<!DOCTYPE html>
<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">
<title>LEAN FAN SITE</title>
<h1>LEAN FAN SITE</h1>
{← f imgs}
<h2>Don't use Dafny, <a href=\"https://github.com/dafny-lang/dafny/pull/6208\">it's (still) unsound!</a></h2>
{← f dafny_imgs}
<p><a href=\"/Main.lean\">Made using the best language ever!</a></p>
<p>Not all images are mine. Please don't sue me.</p>"