Beginning cleanup

This commit is contained in:
James Eversole
2024-10-12 18:08:29 -05:00
parent 960bb0c1a8
commit 303c923552
3 changed files with 21 additions and 19 deletions

View File

@@ -19,13 +19,13 @@ import qualified Servant as S
main :: IO ()
main = run port $ serve proxy app
app :: Server API
app :: Server AppAPI
app = α $ rootHandler
:<|> userListHandler
:<|> userGetHandler
:<|> userPostHandler
α :: ServerT API AppEff -> ServerT API Handler
α :: ServerT AppAPI AppEff -> ServerT AppAPI Handler
α = hoistServer proxy
$ Handler
. ExceptT
@@ -38,5 +38,5 @@ app = α $ rootHandler
port :: Int
port = 8080
proxy :: Proxy API
proxy :: Proxy AppAPI
proxy = Proxy