compareware/Web/Types.hs
2023-04-16 12:33:20 +02:00

20 lines
515 B
Haskell

module Web.Types where
import IHP.Prelude
import IHP.ModelSupport
import Generated.Types
data WebApplication = WebApplication deriving (Eq, Show)
data StaticController = WelcomeAction deriving (Eq, Show, Data)
data TasksController
= TasksAction
| NewTaskAction
| ShowTaskAction { taskId :: !(Id Task) }
| CreateTaskAction
| EditTaskAction { taskId :: !(Id Task) }
| UpdateTaskAction { taskId :: !(Id Task) }
| DeleteTaskAction { taskId :: !(Id Task) }
deriving (Eq, Show, Data)