Skip to content

Commit 9bda360

Browse files
authored
Renamed makeEval to mkEval (#6)
1 parent 4203859 commit 9bda360

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

generated-docs/md/React.Halo.Internal.Eval.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ defaultEval :: forall props action state m. EvalSpec props state action m
4141

4242
The empty `EvalSpec`.
4343

44-
#### `makeEval`
44+
#### `mkEval`
4545

4646
``` purescript
47-
makeEval :: forall m action state props. (EvalSpec props state action m -> EvalSpec props state action m) -> Lifecycle props action -> HaloM props state action m Unit
47+
mkEval :: forall m action state props. (EvalSpec props state action m -> EvalSpec props state action m) -> Lifecycle props action -> HaloM props state action m Unit
4848
```
4949

5050
Given an `EvalSpec` builder, it will return an eval function.

generated-docs/md/React.Halo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ type EvalSpec props state action m = { onAction :: action -> HaloM props state a
349349
A simpler interface for building the components eval function. The main lifecycle events map directly into
350350
actions, so only the action handling logic needs to be written using `HaloM`.
351351

352-
#### `makeEval`
352+
#### `mkEval`
353353

354354
``` purescript
355-
makeEval :: forall m action state props. (EvalSpec props state action m -> EvalSpec props state action m) -> Lifecycle props action -> HaloM props state action m Unit
355+
mkEval :: forall m action state props. (EvalSpec props state action m -> EvalSpec props state action m) -> Lifecycle props action -> HaloM props state action m Unit
356356
```
357357

358358
Given an `EvalSpec` builder, it will return an eval function.

src/React/Halo.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ import Effect.Class (liftEffect) as Class
1717
import React.Basic.Hooks (JSX) as React
1818
import React.Halo.Component (ComponentSpec, HookSpec, UseHalo, component, component_, useHalo) as Halo
1919
import React.Halo.Internal.Control (HaloAp, HaloM, fork, hoist, kill, props, subscribe, subscribe', unsubscribe) as Halo
20-
import React.Halo.Internal.Eval (EvalSpec, defaultEval, makeEval) as Halo
20+
import React.Halo.Internal.Eval (EvalSpec, defaultEval, mkEval) as Halo
2121
import React.Halo.Internal.Types (ForkId, Lifecycle(..), SubscriptionId) as Halo

src/React/Halo/Internal/Eval.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ defaultEval =
9898
}
9999

100100
-- | Given an `EvalSpec` builder, it will return an eval function.
101-
makeEval ::
101+
mkEval ::
102102
forall m action state props.
103103
(EvalSpec props state action m -> EvalSpec props state action m) ->
104104
Lifecycle props action -> HaloM props state action m Unit
105-
makeEval f = case _ of
105+
mkEval f = case _ of
106106
Initialize props -> traverse_ eval.onAction $ eval.onInitialize props
107107
Update old new -> traverse_ eval.onAction $ eval.onUpdate old new
108108
Action action -> eval.onAction action

0 commit comments

Comments
 (0)