Skip to content

Commit 6c49672

Browse files
Jan Vincent LiwanagJan Vincent Liwanag
Jan Vincent Liwanag
authored and
Jan Vincent Liwanag
committed
Remove int, num deprecation
1 parent f977946 commit 6c49672

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/React/Basic/Emotion.purs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,18 @@ merge = unsafeCoerce
199199
str :: String -> StyleProperty
200200
str = unsafeCoerce
201201

202-
int
203-
:: 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.")
204-
=> Int
205-
-> StyleProperty
202+
-- | Create a unitless `Int` property.
203+
-- |
204+
-- | Wherever units may be specified, use unit combinators like `px`
205+
-- | or `em` instead.
206+
int :: Int -> StyleProperty
206207
int = unsafeCoerce
207208

208-
num
209-
:: 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.")
210-
=> Number
211-
-> StyleProperty
209+
-- | Create a unitless `Number` property.
210+
-- |
211+
-- | Wherever units may be specified, use unit combinators like `px`
212+
-- | or `em` instead.
213+
num :: Number -> StyleProperty
212214
num = unsafeCoerce
213215

214216
fallbacks :: Array StyleProperty -> StyleProperty

0 commit comments

Comments
 (0)