haskell-servant/servant
在 GitHub 查看Generic api type fold: unify servant-foreign and servant-docs
Open
#833 创建于 2017年10月9日
enhancementhelp wantedservant-docsservant-foreign
仓库指标
- Star
- (1,953 star)
- PR 合并指标
- (平均合并 5小时 49分钟) (30 天内合并 2 个 PR)
描述
it seems that servant-foreign and servant-docs are moving into same direction
of collecting a lot of information about api type. I wonder if they can be unified in the longer run.
They are simple "folds" as the esult type is independent of endpoints (not true with servant-client e.g.), a bit how Foldable and Traversable are related.
I wonder if we can provide single but extensible GADT? to give common parts of servant-foreign and servant-docs.