logo
首页技术栈工具库讨论
purescript-bridge

purescript-bridge

[Index] [Quick Jump] For package maintainers and hackage trustees Translate your Haskell types to PureScript types. It should in theory work for almost all Haskell types, including type constructors! You just have to instantiate it with dummy parameters from e.g. "Language.PureScript.Bridge.TypeParameters". Data type translation is fully and easily customizable by providing your own BridgePart instances! For compatible JSON representations you should be using aeson's generic encoding/decoding with default options and encodeJson and decodeJson from "Data.Argonaut.Generic.Aeson" in purescript-argonaut-generic-codecs. Usage of this library is documented in Language.Purescript.Bridge, with writePSTypes you should have everything to get started. Documentation can be found here. It works for my use case and is used in production. PRs for more PSTypes definitions and bridges are very welcome!
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install purescript-bridge
查看
标签
根据用户添加的标签生成
暂无标签