Skip to content

Commit 477b9cf

Browse files
Update library to compile on upcoming 0.14.0 PS release (#113)
1 parent 518a930 commit 477b9cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/React/Basic.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ foreign import createComponent
139139
-- | identify the component. It receives the `ComponentSpec` as a prop and knows
140140
-- | how to defer behavior to it. It requires very specific props and is not useful by
141141
-- | itself from JavaScript. For JavaScript interop, see `toReactComponent`.__
142-
data Component props
142+
foreign import data Component :: Type -> Type
143143

144144
-- | `Self` represents the component instance at a particular point in time.
145145
-- |

src/React/Basic/Events.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Data.Symbol (class IsSymbol, SProxy(SProxy))
1717
import Effect (Effect)
1818
import Effect.Uncurried (EffectFn1, mkEffectFn1)
1919
import Prim.Row as Row
20-
import Prim.RowList (kind RowList, class RowToList, Cons, Nil)
20+
import Prim.RowList (class RowToList, RowList, Cons, Nil)
2121
import Record (delete, get, insert)
2222
import Type.Data.RowList (RLProxy(..))
2323

@@ -77,7 +77,7 @@ handler_ = mkEffectFn1 <<< const
7777
syntheticEvent :: EventFn SyntheticEvent SyntheticEvent
7878
syntheticEvent = identity
7979

80-
class Merge (rl :: RowList) fns a r | rl -> fns, rl a -> r where
80+
class Merge (rl :: RowList Type) fns a r | rl -> fns, rl a -> r where
8181
mergeImpl :: RLProxy rl -> Record fns -> EventFn a (Record r)
8282

8383
instance mergeNil :: Merge Nil () a () where

0 commit comments

Comments
 (0)