fix: rename route constructors to avoid type conflicts

- Renamed route constructors: RouteLogin → RLogin, RouteDashboard → RDashboard, etc.
- This fixes ambiguous occurrence errors with Types.Dashboard vs Route.Dashboard
- Fixed Layout.hs navbar links to use new constructor names
- Server verified serving HTML on /login, /rdashboard, etc.
This commit is contained in:
2026-07-16 06:54:18 -04:00
parent 1d5ecd0829
commit df9ad3d7c4
9 changed files with 32 additions and 32 deletions
+8 -8
View File
@@ -7,14 +7,14 @@ import GHC.Generics (Generic)
import Web.Hyperbole.Route
data AppRoute
= RouteHome
| RouteLogin
| RouteSignup
| RouteDashboard
| RouteChores
| RouteHousehold
| RouteActivity
= Home
| RLogin
| RSignup
| RDashboard
| RChores
| RHousehold
| RActivity
deriving stock (Eq, Generic, Show)
instance Route AppRoute where
baseRoute = Just RouteHome
baseRoute = Just Home