We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93faf9 commit f767635Copy full SHA for f767635
test/Test/Example/Newtype.purs
@@ -1,6 +1,6 @@
1
module Test.Example.Newtype where
2
3
-import Data.Codec.Argonaut as CA
+import Data.Codec.Argonaut.Common as CA
4
import Data.Codec.Argonaut.Record as CAR
5
import Data.Newtype (class Newtype)
6
import Data.Profunctor (wrapIso)
@@ -13,8 +13,8 @@ derive instance newtypePerson ∷ Newtype Person _
13
14
codec ∷ CA.JsonCodec Person
15
codec =
16
- CA.coercible "Person"
17
- (CAR.record
+ wrapIso Person
+ (CAR.object "Person"
18
{ "Name": CA.string
19
, age: CA.int
20
, "is active": CA.boolean
0 commit comments