initial commit
This commit is contained in:
commit
70d3db13c7
17 changed files with 1109 additions and 0 deletions
15
app/TodoListItem.hs
Normal file
15
app/TodoListItem.hs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue