IT練習ノート

IT関連で調べたこと(実際は嵌ったこと)を書いています。

Servant API の変遷

HasServerのroute関数の変遷

class HasServer layout where
  type ServerT layout (m :: * -> *) :: *
  route ::  *********
version implementation
0.2.1–0.4.0 route :: Proxy layout -> Server layout -> RoutingApplication
0.5–0.6 route :: Proxy layout -> Context context -> Delayed (Server layout) -> Router
0.7–0.10 route :: Proxy api -> Context context -> Delayed env (Server api) -> Router env