initial commit

This commit is contained in:
stuce-bot 2025-05-13 20:21:30 +02:00
commit 70d3db13c7
17 changed files with 1109 additions and 0 deletions

15
app/TodoListItem.hs Normal file
View file

@ -0,0 +1,15 @@
module TodoListItem where
data TodoListItem = TodoListItem
{ name :: String
, done :: Bool
}
instance Show TodoListItem where
show (TodoListItem name done) =
s done ++ " " ++ name ++ "\n"
where
s True = "[x]"
s False = "[ ]"
-- TODO: create a class to render items to html to make it easier to create everything for the website using the web primitives