File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ module React.Basic.Emotion
21
21
) where
22
22
23
23
import Prelude
24
+
24
25
import Color (Color , cssStringHSLA )
25
26
import Control.Monad.Except (runExcept )
26
27
import Data.Array as Array
27
28
import Data.Either (Either (..))
28
29
import Data.Function.Uncurried (Fn2 , runFn2 )
29
30
import Foreign as F
31
+ import Prim.TypeError (class Warn , Text )
30
32
import React.Basic (JSX , ReactComponent )
31
33
import Type.Row.Homogeneous (class Homogeneous )
32
34
import Unsafe.Coerce (unsafeCoerce )
@@ -122,10 +124,16 @@ merge = unsafeCoerce
122
124
str :: String -> StyleProperty
123
125
str = unsafeCoerce
124
126
125
- int :: Int -> StyleProperty
127
+ int
128
+ :: Warn (Text " `int` is deprecated and may be removed in future versions. Prefer one of the unit combinators like `px` or `em` instead." )
129
+ => Int
130
+ -> StyleProperty
126
131
int = unsafeCoerce
127
132
128
- num :: Number -> StyleProperty
133
+ num
134
+ :: Warn (Text " `int` is deprecated and may be removed in future versions. Prefer one of the unit combinators like `px` or `em` instead." )
135
+ => Number
136
+ -> StyleProperty
129
137
num = unsafeCoerce
130
138
131
139
fallbacks :: Array StyleProperty -> StyleProperty
You can’t perform that action at this time.
0 commit comments