Skip to content

Commit 151fcf2

Browse files
Jan Vincent LiwanagJan Vincent Liwanag
Jan Vincent Liwanag
authored and
Jan Vincent Liwanag
committed
Fix warning of constraints in ffi
1 parent d53b870 commit 151fcf2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/React/Basic/Emotion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ exports.elementKeyed_ = (component, props) =>
3333

3434
exports.global = Emotion.Global;
3535

36-
exports.css = _homogeneousDict => Emotion.css;
36+
exports._css = Emotion.css;
3737

3838
exports.important = prop => typeof prop === "string" ? prop + " !important" : prop;
3939

40-
exports.keyframes = _homogeneousDict => Emotion.keyframes;
40+
exports._keyframes = Emotion.keyframes;

src/React/Basic/Emotion.purs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,17 @@ foreign import elementKeyed_ ::
177177

178178
foreign import global :: ReactComponent { styles :: Style }
179179

180-
foreign import css :: forall r. Homogeneous r StyleProperty => { | r } -> Style
180+
css :: forall r. Homogeneous r StyleProperty => { | r } -> Style
181+
css = _css
182+
183+
foreign import _css :: forall r. { | r } -> Style
181184

182185
foreign import important :: StyleProperty -> StyleProperty
183186

184-
foreign import keyframes :: forall r. Homogeneous r Style => { | r } -> StyleProperty
187+
keyframes :: forall r. Homogeneous r Style => { | r } -> StyleProperty
188+
keyframes = _keyframes
189+
190+
foreign import _keyframes :: forall r. { | r } -> StyleProperty
185191

186192
nested :: Style -> StyleProperty
187193
nested = unsafeCoerce

0 commit comments

Comments
 (0)