From 527c1cf05d725ba973b19311cf8cdf9eb933795a Mon Sep 17 00:00:00 2001 From: Arthur Xavier Date: Tue, 2 Jun 2020 12:12:56 -0300 Subject: [PATCH] Fix deprecation docs on 'int' and 'num' --- src/React/Basic/Emotion.purs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/React/Basic/Emotion.purs b/src/React/Basic/Emotion.purs index d3731a2..023e646 100644 --- a/src/React/Basic/Emotion.purs +++ b/src/React/Basic/Emotion.purs @@ -132,13 +132,13 @@ str :: String -> StyleProperty str = unsafeCoerce int - :: Warn (Text "`int` is deprecated and may be removed in future versions. Prefer one of the unit combinators like `px` or `em` instead.") + :: Warn (Text "`int` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead.") => Int -> StyleProperty int = unsafeCoerce num - :: Warn (Text "`int` is deprecated and may be removed in future versions. Prefer one of the unit combinators like `px` or `em` instead.") + :: Warn (Text "`int` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead.") => Number -> StyleProperty num = unsafeCoerce