It actually seems like purescript-bridge is a lot more modern than it seems; the hackage version is just really old. In v0.14 (just a few months old)
- support for
Generics.Rep - support for
foreign-generic
I’ll probably start updating the rest of purescript-bridge for modern purescript. Looks like it could become a really nice tool.
EDIT: To use generics-rep and foreign-generic, use these settings:
import Language.PureScript.Bridge.CodeGenSwitches (useGenRep, genForeign)
writePSTypesWith (useGenRep <> genForeign (ForeignOptions False))