Skip to content

Commit c1e8082

Browse files
committed
Updates for extracted Identity
1 parent 6337064 commit c1e8082

File tree

10 files changed

+17
-77
lines changed

10 files changed

+17
-77
lines changed

bower.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
"package.json"
1919
],
2020
"dependencies": {
21-
"purescript-tuples": "*",
22-
"purescript-either": "*",
23-
"purescript-monoid": "*",
24-
"purescript-arrays": "~0.2.0",
25-
"purescript-control": "~0.2.0"
21+
"purescript-tuples": "~0.2.1",
22+
"purescript-either": "~0.1.3",
23+
"purescript-monoid": "~0.1.4",
24+
"purescript-arrays": "~0.2.1",
25+
"purescript-control": "~0.2.1",
26+
"purescript-identity": "~0.1.0"
2627
},
2728
"devDependencies": {
2829
"purescript-strings": "*"

docs/Module.md

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
### Types
229229

230230
newtype ContT r m a where
231-
ContT :: (a -> m r) -> m r -> ContT r m a
231+
ContT :: ((a -> m r) -> m r) -> ContT r m a
232232

233233

234234
### Type Class Instances
@@ -339,36 +339,6 @@
339339
runErrorT :: forall e m a. ErrorT e m a -> m (Either e a)
340340

341341

342-
## Module Control.Monad.Identity
343-
344-
### Types
345-
346-
newtype Identity a where
347-
Identity :: a -> Identity a
348-
349-
350-
### Type Class Instances
351-
352-
instance applicativeIdentity :: Applicative Identity
353-
354-
instance applyIdentity :: Apply Identity
355-
356-
instance bindIdentity :: Bind Identity
357-
358-
instance comonadIdentity :: Comonad Identity
359-
360-
instance extendIdentity :: Extend Identity
361-
362-
instance functorIdentity :: Functor Identity
363-
364-
instance monadIdentity :: Monad Identity
365-
366-
367-
### Values
368-
369-
runIdentity :: forall a. Identity a -> a
370-
371-
372342
## Module Control.Monad.Maybe.Trans
373343

374344
### Types
@@ -478,7 +448,7 @@
478448
### Types
479449

480450
newtype RWST r w s m a where
481-
RWST :: r -> s -> m (See s a w) -> RWST r w s m a
451+
RWST :: (r -> s -> m (See s a w)) -> RWST r w s m a
482452

483453
type See s a w = { log :: w, result :: a, state :: s }
484454

@@ -565,7 +535,7 @@
565535
### Types
566536

567537
newtype ReaderT r m a where
568-
ReaderT :: r -> m a -> ReaderT r m a
538+
ReaderT :: (r -> m a) -> ReaderT r m a
569539

570540

571541
### Type Class Instances
@@ -667,7 +637,7 @@
667637
### Types
668638

669639
newtype StateT s m a where
670-
StateT :: s -> m (Tuple a s) -> StateT s m a
640+
StateT :: (s -> m (Tuple a s)) -> StateT s m a
671641

672642

673643
### Type Class Instances

src/Control/Comonad/Env.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module Control.Comonad.Env where
22

33
import Control.Comonad.Env.Trans
4-
import Control.Monad.Identity
5-
4+
import Data.Identity
65
import Data.Tuple
76

87
type Env e = EnvT e Identity

src/Control/Comonad/Store.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module Control.Comonad.Store where
22

33
import Control.Comonad.Store.Trans
4-
import Control.Monad.Identity
5-
4+
import Data.Identity
65
import Data.Tuple
76

87
type Store s a = StoreT s Identity a

src/Control/Comonad/Traced.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Control.Comonad.Traced where
22

33
import Control.Comonad.Traced.Trans
4-
import Control.Monad.Identity
4+
import Data.Identity
55

66
type Traced m = TracedT m Identity
77

src/Control/Monad/Identity.purs

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Control/Monad/RWS.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Control.Monad.RWS where
22

3-
import Control.Monad.Identity
43
import Control.Monad.RWS.Trans
4+
import Data.Identity
55
import Data.Monoid
66
import Data.Tuple
77

src/Control/Monad/Reader.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Control.Monad.Reader where
22

3-
import Control.Monad.Identity
43
import Control.Monad.Reader.Trans
4+
import Data.Identity
55

66
type Reader r = ReaderT r Identity
77

src/Control/Monad/State.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Control.Monad.State where
22

3-
import Control.Monad.Identity
43
import Control.Monad.State.Trans
4+
import Data.Identity
55
import Data.Tuple
66

77
type State s = StateT s Identity

src/Control/Monad/Writer.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Control.Monad.Writer where
22

3-
import Control.Monad.Identity
43
import Control.Monad.Writer.Trans
4+
import Data.Identity
55
import Data.Monoid
66
import Data.Tuple
77

0 commit comments

Comments
 (0)