From 27048a1c261a5e8e52fbc8a742fd2f2c57c03005 Mon Sep 17 00:00:00 2001 From: Peter Murphy <26548438+ptrfrncsmrph@users.noreply.github.com> Date: Mon, 28 Dec 2020 17:52:46 -0500 Subject: [PATCH] Fix custom warning for `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 15f8dde..1ba7484 100644 --- a/src/React/Basic/Emotion.purs +++ b/src/React/Basic/Emotion.purs @@ -199,7 +199,7 @@ int int = unsafeCoerce num - :: 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.") + :: Warn (Text "`num` 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 @@ -533,4 +533,4 @@ toUnitWith4 :: forall a. (a -> String) -> String -> a -> a -> a -> a -> StylePro toUnitWith4 f s a b c d = toUnitWithN f s [a, b, c, d] toUnitWithN :: forall a. (a -> String) -> String -> Array a -> StyleProperty -toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as)) \ No newline at end of file +toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as))