Skip to content

Commit 09ada90

Browse files
committed
Merge pull request #16 from ethul/topic/move-free
Moving Free and Trampoline to purescript-free
2 parents fc68329 + a9fdee6 commit 09ada90

File tree

5 files changed

+0
-296
lines changed

5 files changed

+0
-296
lines changed

Gruntfile.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ module.exports = function(grunt) {
3939
exampleCont: {
4040
src: ["examples/Cont.purs", "<%=libFiles%>"],
4141
dest: "tmp/Cont.js"
42-
},
43-
exampleFree: {
44-
src: ["examples/Free.purs", "<%=libFiles%>"],
45-
dest: "tmp/Free.js"
4642
}
4743
},
4844

@@ -58,9 +54,6 @@ module.exports = function(grunt) {
5854
},
5955
exampleCont: {
6056
src: "tmp/Cont.js"
61-
},
62-
exampleFree: {
63-
src: "tmp/Free.js"
6457
}
6558
}
6659

@@ -74,7 +67,6 @@ module.exports = function(grunt) {
7467
grunt.registerTask("exampleState", ["psc:exampleState", "execute:exampleState"]);
7568
grunt.registerTask("exampleWriter", ["psc:exampleWriter", "execute:exampleWriter"]);
7669
grunt.registerTask("exampleCont", ["psc:exampleCont", "execute:exampleCont"]);
77-
grunt.registerTask("exampleFree", ["psc:exampleFree", "execute:exampleFree"]);
7870
grunt.registerTask("examples", ["psc", "execute"]);
7971
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
8072
grunt.registerTask("default", ["make"]);

docs/Module.md

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -139,54 +139,6 @@
139139
runErrorT :: forall e m a. ErrorT e m a -> m (Either e a)
140140

141141

142-
## Module Control.Monad.Free
143-
144-
### Types
145-
146-
data Free f a where
147-
Pure :: a -> Free f a
148-
Free :: f (Free f a) -> Free f a
149-
Gosub :: forall s. (forall r. (Unit -> Free f r) -> (r -> Free f a) -> s) -> s -> Free f a
150-
151-
152-
### Type Classes
153-
154-
class MonadFree f m where
155-
wrap :: forall a. f (m a) -> m a
156-
157-
158-
### Type Class Instances
159-
160-
instance applicativeFree :: (Functor f) => Applicative (Free f)
161-
162-
instance applyFree :: (Functor f) => Apply (Free f)
163-
164-
instance bindFree :: (Functor f) => Bind (Free f)
165-
166-
instance functorFree :: (Functor f) => Functor (Free f)
167-
168-
instance monadFree :: (Functor f) => Monad (Free f)
169-
170-
instance monadFreeFree :: (Functor f) => MonadFree f (Free f)
171-
172-
instance monadTransFree :: MonadTrans Free
173-
174-
175-
### Values
176-
177-
go :: forall f a. (Functor f) => (f (Free f a) -> Free f a) -> Free f a -> a
178-
179-
goEff :: forall e f a. (Functor f) => (f (Free f a) -> Eff e (Free f a)) -> Free f a -> Eff e a
180-
181-
goM :: forall f m a. (Functor f, Monad m) => (f (Free f a) -> m (Free f a)) -> Free f a -> m a
182-
183-
iterM :: forall f m a. (Functor f, Monad m) => (forall a. f (m a) -> m a) -> Free f a -> m a
184-
185-
liftF :: forall f m a. (Functor f, Monad m, MonadFree f m) => f a -> m a
186-
187-
pureF :: forall f a. (Applicative f) => a -> Free f a
188-
189-
190142
## Module Control.Monad.Identity
191143

192144
### Types
@@ -566,36 +518,6 @@
566518
withStateT :: forall s m a. (s -> s) -> StateT s m a -> StateT s m a
567519

568520

569-
## Module Control.Monad.Trampoline
570-
571-
### Types
572-
573-
newtype Delay a where
574-
Delay :: Unit -> a -> Delay a
575-
576-
type Trampoline a = Free Delay a
577-
578-
579-
### Type Class Instances
580-
581-
instance delayApplicative :: Applicative Delay
582-
583-
instance delayApply :: Apply Delay
584-
585-
instance delayFunctor :: Functor Delay
586-
587-
588-
### Values
589-
590-
delay :: forall a. (Unit -> a) -> Trampoline a
591-
592-
done :: forall a. a -> Trampoline a
593-
594-
runTrampoline :: forall a. Trampoline a -> a
595-
596-
suspend :: forall a. Trampoline a -> Trampoline a
597-
598-
599521
## Module Control.Monad.Trans
600522

601523
### Type Classes

examples/Free.purs

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

src/Control/Monad/Free.purs

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

src/Control/Monad/Trampoline.purs

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

0 commit comments

Comments
 (0)