Skip to content

Commit d26e86f

Browse files
committed
Change README
1 parent 01e52a3 commit d26e86f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,14 @@ derive instance Generic Sample _
159159
A simple codec for `Sample` can be created like this in a type safe way:
160160

161161
```purescript
162-
import Data.Codec.Argonaut (sum, sumWith)
162+
import Data.Codec.Argonaut.Sum as CAS
163+
import Data.Codec.Argonaut as CA
163164
164165
codecSample ∷ JsonCodec Sample
165-
codecSample = sum "Sample"
166+
codecSample = CAS.sum "Sample"
166167
{ "Foo": unit
167-
, "Bar": C.int
168-
, "Baz": C.boolean /\ C.string /\ C.int
168+
, "Bar": CA.int
169+
, "Baz": CA.boolean /\ CA.string /\ CA.int
169170
}
170171
```
171172

0 commit comments

Comments
 (0)