Skip to content

Commit e3ccfd7

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

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/React/Basic/Emotion.purs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ import Data.Number.Format (toString) as Number
8282
import Data.String as String
8383
import Foreign as F
8484
import Foreign.Object (Object, fromHomogeneous)
85-
import Prim.TypeError (class Warn, Text)
8685
import React.Basic (JSX, ReactComponent)
8786
import Type.Row.Homogeneous (class Homogeneous)
8887
import Unsafe.Coerce (unsafeCoerce)
@@ -199,16 +198,18 @@ merge = unsafeCoerce
199198
str :: String -> StyleProperty
200199
str = unsafeCoerce
201200

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

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

214215
fallbacks :: Array StyleProperty -> StyleProperty

0 commit comments

Comments
 (0)