Skip to content

Commit b041043

Browse files
leighmanthomashoneyman
authored andcommitted
Correct Newtype instance deriving example (#66)
1 parent adaad0f commit b041043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ In that case, we can use newtype deriving to get `EncodeJson` and `DecodeJson` f
315315
```purs
316316
newtype AppUser = AppUser { name :: String, age :: Maybe Int, team :: Team }
317317
318-
instance newtypeAppUser :: Newtype AppUser _
318+
derive instance newtypeAppUser :: Newtype AppUser _
319319
320320
derive newtype instance encodeJsonAppUser :: EncodeJson AppUser
321321
derive newtype instance decodeJsonAppUser :: DecodeJson AppUser

0 commit comments

Comments
 (0)