purescript-bridge
purescript-bridge copied to clipboard
Create PureScript datatypes from Haskell datatypes
https://github.com/eskimor/purescript-bridge/issues/63 * `CodeGenSwitches` no longer used * `Proxy` no longer used * `Printer` uses `Leijen.Text` instead of `Text` * `genericShow` PureScript instance * I think the same as https://github.com/eskimor/purescript-bridge/pull/85 *...
Perhaps we can upstream something from this active fork https://github.com/input-output-hk/purescript-bridge
Given this purescript code ```purescript module Foo where import Data.Generic.Rep (class Generic) import Data.Argonaut.Encode.Class (class EncodeJson, encodeJson) import Data.Argonaut.Aeson.Encode.Generic (genericEncodeAeson) import Data.Argonaut.Aeson.Options as Argonaut import Data.Argonaut.Core (stringify) data Bla =...
This PR allows end users to provide options to the way that type representations are constructed. This allows users to hook into the generic machinery and make the types match...
After IOHK fork is merged Suggested here https://discord.com/channels/864614189094928394/865401680497737758/1087375777546383500 https://github.com/purescript-contrib/purescript-argonaut-codecs https://github.com/garyb/purescript-codec-argonaut Maybe https://github.com/JordanMartinez/purescript-json-codecs
https://github.com/topics/purescript
```haskell deriving instance Eq A data Maybe' a = Nothing' | Just' a deriving (Generic, Eq) myTypes :: [SumType 'Haskell] myTypes = [ let p = (Proxy :: Proxy (Maybe'...
Out of the box using the [TypeParameters](https://www.stackage.org/haddock/nightly-2023-02-14/purescript-bridge-0.15.0.0/Language-PureScript-Bridge-TypeParameters.html#t:A) needs an additional standalone deriving like `deriving instance Eq A`. Otherwise you will get the errors below. Could this library deriving these classes...
I can't get how to use the lenses generated by `purescript-bridge`... Let's suppose I have the following haskell types defined: data Book = Book { author :: Author, pages ::...
AFAICT, currently the list of all the different kinds of instances that can be generated is hard-coded into the printer. I would like to be able to plug in some...