Skip to content

Commit 60d6028

Browse files
authored
Docs: Custom deprecation warning (#443)
Fixing example by using `Text`. Otherwise it'll result in: "KindsDoNotUnify: Could not match kind Symbol with kind Doc."
1 parent ae29196 commit 60d6028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/Custom-Type-Errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ notBad = 21
1818
But now you decide there is something `better`; you want to deprecate `notBad` in favour of this new function:
1919

2020
```purescript
21-
notBad :: Warn "`notBad` is deprecated. Prefer `better` instead." => Int
21+
notBad :: Warn (Text "`notBad` is deprecated. Prefer `better` instead.") => Int
2222
notBad = 21
2323
2424
better :: Int

0 commit comments

Comments
 (0)