Skip to content

Commit be154d6

Browse files
authored
Merge pull request #13 from ptrfrncsmrph/patch-1
Fix custom warning for `num`
2 parents aabab2d + 27048a1 commit be154d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React/Basic/Emotion.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int
199199
int = unsafeCoerce
200200

201201
num
202-
:: 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.")
202+
:: 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.")
203203
=> Number
204204
-> StyleProperty
205205
num = unsafeCoerce
@@ -533,4 +533,4 @@ toUnitWith4 :: forall a. (a -> String) -> String -> a -> a -> a -> a -> StylePro
533533
toUnitWith4 f s a b c d = toUnitWithN f s [a, b, c, d]
534534

535535
toUnitWithN :: forall a. (a -> String) -> String -> Array a -> StyleProperty
536-
toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as))
536+
toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as))

0 commit comments

Comments
 (0)