Update README.md

Rename Taggable to Tagged
This commit is contained in:
Daneel S. Yaitskov 2023-08-23 15:18:42 -04:00 committed by GitHub
parent f1a4681709
commit 07657e21de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ For example -
```purescript
data Person = Person {name::String, age::Int}
instance Taggable Person where tag = makeTag unit
instance Tagged Person where tag = makeTag unit
```
This is valid even for data types that take parameters. For example -
@ -57,7 +57,7 @@ This is valid even for data types that take parameters. For example -
```purescript
data Optional a = Some a | None
instance Taggable Optional where tag = makeTag unit
instance Tagged Optional where tag = makeTag unit
```
**Don't worry about getting it wrong since the type system will prevent you from writing an invalid instance.**