Reintroduce Debugging database handler; update main to allow for environment definition that will branch between all debug handlers or real effect handlers

This commit is contained in:
James Eversole
2024-11-05 15:18:21 -06:00
parent 13e8a11e83
commit 691e51660f
8 changed files with 137 additions and 48 deletions

View File

@@ -25,7 +25,7 @@ type AppEff =
, Error ServerError
]
data AppEnv = AppEnv { pool :: Pool Connection }
data AppEnv = AppEnv { pool :: Maybe (Pool Connection) }
newtype UserId = UserId Int
deriving (Show, Generic, FromField, ToField, FromHttpApiData, ToHttpApiData)