Skip to content

Commit

Permalink
Update dependencies for 0.11.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed Mar 29, 2017
1 parent 1ef7d4e commit 88832a0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"url": "git://github.com/purescript-contrib/purescript-react.git"
},
"dependencies": {
"purescript-eff": "^2.0.0",
"purescript-prelude": "^2.1.0",
"purescript-unsafe-coerce": "^2.0.0"
"purescript-eff": "^3.0.0",
"purescript-prelude": "^3.0.0",
"purescript-unsafe-coerce": "^3.0.0"
},
"devDependencies": {
"purescript-console": "^2.0.0",
"purescript-psci-support": "^2.0.0"
"purescript-console": "^3.0.0",
"purescript-psci-support": "^3.0.0"
}
}
30 changes: 15 additions & 15 deletions src/React.purs
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,32 @@ module React
) where

import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff (kind Effect, Eff)
import Unsafe.Coerce (unsafeCoerce)

-- | Name of a tag.
type TagName = String

-- | A virtual DOM node, or component.
foreign import data ReactElement :: *
foreign import data ReactElement :: Type

-- | A mounted react component
foreign import data ReactComponent :: *
foreign import data ReactComponent :: Type

-- | A reference to a component, essentially React's `this`.
foreign import data ReactThis :: * -> * -> *
foreign import data ReactThis :: Type -> Type -> Type

-- | An event handler. The type argument represents the type of the event.
foreign import data EventHandler :: * -> *
foreign import data EventHandler :: Type -> Type

-- | This phantom type indicates that read access to a resource is allowed.
foreign import data Read :: !
foreign import data Read :: Effect

-- | This phantom type indicates that write access to a resource is allowed.
foreign import data Write :: !
foreign import data Write :: Effect

-- | An access synonym which indicates that neither read nor write access are allowed.
type Disallowed = () :: # !
type Disallowed = () :: # Effect

-- | An access synonym which indicates that both read and write access are allowed.
type ReadWrite = (read :: Read, write :: Write)
Expand All @@ -101,21 +101,21 @@ type ReadOnly = (read :: Read)
-- | This effect indicates that a computation may read or write the component state.
-- |
-- | The first type argument is a row of access types (`Read`, `Write`).
foreign import data ReactState :: # ! -> !
foreign import data ReactState :: # Effect -> Effect

-- | This effect indicates that a computation may read the component props.
foreign import data ReactProps :: !
foreign import data ReactProps :: Effect

-- | This effect indicates that a computation may read the component refs.
-- |
-- | The first type argument is a row of access types (`Read`, `Write`).
foreign import data ReactRefs :: # ! -> !
foreign import data ReactRefs :: # Effect -> Effect

-- | The type of refs objects.
foreign import data Refs :: *
foreign import data Refs :: Type

-- | The type of DOM events.
foreign import data Event :: *
foreign import data Event :: Type

-- | The type of mouse events.
type MouseEvent =
Expand Down Expand Up @@ -282,7 +282,7 @@ spec' getInitialState renderFn =
}

-- | React class for components.
foreign import data ReactClass :: * -> *
foreign import data ReactClass :: Type -> Type

-- | Read the component props.
foreign import getProps :: forall props state eff.
Expand Down Expand Up @@ -360,7 +360,7 @@ foreign import createFactory :: forall props.
ReactClass props -> props -> ReactElement

-- | Internal representation for the children elements passed to a component
foreign import data Children :: *
foreign import data Children :: Type

-- | Internal conversion function from children elements to an array of React elements
foreign import childrenToArray :: Children -> Array ReactElement
Expand Down
2 changes: 1 addition & 1 deletion src/React/DOM/Props.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module React.DOM.Props where

import React (Event, EventHandlerContext, KeyboardEvent, MouseEvent, handle)

foreign import data Props :: *
foreign import data Props :: Type

foreign import unsafeMkProps :: forall val. String -> val -> Props

Expand Down

0 comments on commit 88832a0

Please sign in to comment.