File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 46
46
Free :: f (Free f a) -> Free f a
47
47
Gosub :: (forall s. (forall r. (Unit -> Free f r) -> (r -> Free f a) -> s) -> s) -> Free f a
48
48
49
- type FreeC f a = Free (Coyoneda f) a
49
+ type FreeC f = Free (Coyoneda f)
50
50
51
51
52
52
### Type Classes
Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ teletype3N :: forall e. Natural Teletype3F (Eff (trace :: Trace | e))
57
57
teletype3N (Print3 s a) = const a <$> trace (" teletype3: " ++ s)
58
58
59
59
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)
63
63
64
64
run :: forall a . T a -> Eff (trace :: Trace ) a
65
65
run = goEffC tN
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ data Free f a = Pure a
22
22
| Free (f (Free f a ))
23
23
| Gosub (forall s . (forall r . (Unit -> Free f r ) -> (r -> Free f a ) -> s ) -> s )
24
24
25
- type FreeC f a = Free (Coyoneda f ) a
25
+ type FreeC f = Free (Coyoneda f )
26
26
27
27
class MonadFree f m where
28
28
wrap :: forall a . f (m a ) -> m a
You can’t perform that action at this time.
0 commit comments