Skip to content

Commit d9c1cc6

Browse files
committed
Merge pull request #21 from ethul/topic/freec-partially
Partially apply FreeC
2 parents 1699da4 + 4389867 commit d9c1cc6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
Free :: f (Free f a) -> Free f a
4747
Gosub :: (forall s. (forall r. (Unit -> Free f r) -> (r -> Free f a) -> s) -> s) -> Free f a
4848

49-
type FreeC f a = Free (Coyoneda f) a
49+
type FreeC f = Free (Coyoneda f)
5050

5151

5252
### Type Classes

examples/TeletypeCoproduct.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ teletype3N :: forall e. Natural Teletype3F (Eff (trace :: Trace | e))
5757
teletype3N (Print3 s a) = const a <$> trace ("teletype3: " ++ s)
5858

5959
tN :: forall e. Natural TF (Eff (trace :: Trace | e))
60-
tN fa = fromJust$ (teletype1N <$> prj fa) <|>
61-
(teletype2N <$> prj fa) <|>
62-
(teletype3N <$> prj fa)
60+
tN fa = fromJust $ (teletype1N <$> prj fa) <|>
61+
(teletype2N <$> prj fa) <|>
62+
(teletype3N <$> prj fa)
6363

6464
run :: forall a. T a -> Eff (trace :: Trace) a
6565
run = goEffC tN

src/Control/Monad/Free.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ data Free f a = Pure a
2222
| Free (f (Free f a))
2323
| Gosub (forall s. (forall r. (Unit -> Free f r) -> (r -> Free f a) -> s) -> s)
2424

25-
type FreeC f a = Free (Coyoneda f) a
25+
type FreeC f = Free (Coyoneda f)
2626

2727
class MonadFree f m where
2828
wrap :: forall a. f (m a) -> m a

0 commit comments

Comments
 (0)