File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
recipes/RunCapabilityPatternNode/src Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,4 @@ _logger :: Proxy "logger"
43
43
_logger = Proxy
44
44
45
45
_getUserName :: Proxy " getUserName"
46
- _getUserName = Proxy
46
+ _getUserName = Proxy
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type Environment = { asyncEnv :: String }
21
21
-- The `GetUserName` dsl can be interpreted without
22
22
-- using `Reader` as an intermediate step (as shown in `ProductionSync`),
23
23
-- but I chose to use Reader here just to show off how you'd go about doing it.
24
- type AppMA r = Run (READER Environment + AFF + EFFECT + r )
24
+ type AppMA r = Run (READER Environment + AFF + EFFECT + r )
25
25
26
26
-- | Running our monad is just a matter of interpreter composition.
27
27
runApp :: Environment -> AppMA (LOGGER + GET_USER_NAME + ()) ~> Aff
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ runLogger = Run.interpret (on _logger handleLogger send)
24
24
handleLogger :: LoggerF ~> TestM r
25
25
handleLogger (Log _ a) = pure a
26
26
27
- runGetUserName :: forall r . TestM (GET_USER_NAME + r ) ~> TestM r
27
+ runGetUserName :: forall r . TestM (GET_USER_NAME + r ) ~> TestM r
28
28
runGetUserName = Run .interpret (on _getUserName handleUserName send)
29
29
where
30
30
handleUserName :: GetUserNameF ~> TestM r
You can’t perform that action at this time.
0 commit comments