Skip to content

Commit

Permalink
Bumping version number to 2.0.0
Browse files Browse the repository at this point in the history
Updates for PureScript 0.10
  • Loading branch information
ethul committed Nov 5, 2016
1 parent 631d7ce commit f419617
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"!src/**/*"
],
"dependencies": {
"purescript-profunctor-lenses": "~1.0.0",
"purescript-react": "~1.1.0"
"purescript-profunctor-lenses": "^2.1.0",
"purescript-react": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-react-redux",
"version": "1.0.0",
"version": "2.0.0",
"private": true,
"files": [],
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/React/Redux.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

// module React.Redux

var Redux = require('redux');

var ReactRedux = require('react-redux');
Expand Down
6 changes: 3 additions & 3 deletions src/React/Redux.purs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Control.Monad.Eff.Class (class MonadEff, liftEff)

import Data.Either (Either, either)
import Data.Function.Uncurried (Fn2, runFn2)
import Data.Lens (GetterP, LensP, PrismP, matching, set, view)
import Data.Lens (Getter', Lens', Prism', matching, set, view)

import Unsafe.Coerce (unsafeCoerce)

Expand Down Expand Up @@ -92,7 +92,7 @@ spec getInitialState render =
spec' :: forall props eff f action. Render props Unit eff f action -> Spec props Unit eff f action
spec' = spec (\_ _ -> pure unit)

createClass :: forall props state eff f action state'. MonadEff (Effects eff) f => GetterP state' props -> Spec props state eff f action -> ReduxReactClass state' props
createClass :: forall props state eff f action state'. MonadEff (Effects eff) f => Getter' state' props -> Spec props state eff f action -> ReduxReactClass state' props
createClass lens spec_ = connect (view lens) reactClass
where
reactClass :: React.ReactClass props
Expand Down Expand Up @@ -122,7 +122,7 @@ createElement store reduxClass =
createStore :: forall eff action state. Reducer action state -> state -> Eff (Effects eff) (Store action state)
createStore = runFn2 createStore_

reducerOptic :: forall state state' action action'. LensP state state' -> PrismP action action' -> Reducer action' state' -> Reducer action state
reducerOptic :: forall state state' action action'. Lens' state state' -> Prism' action action' -> Reducer action' state' -> Reducer action state
reducerOptic lens prism k action state = either (const state) (\a -> set lens (k a state') state) action'
where
state' :: state'
Expand Down

0 comments on commit f419617

Please # to comment.