-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gdotdesign/mailboxed-components
Mailboxed components.
- Loading branch information
Showing
40 changed files
with
1,220 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Ext.Signal where | ||
|
||
{-| Utility functions for working with signals. | ||
@docs sendAsEffect | ||
-} | ||
import Effects | ||
import Signal | ||
|
||
{-| Sends the given value to the given address and turns it into an effect | ||
for a different address. | ||
Signal.sendAsEffect address value action | ||
-} | ||
sendAsEffect : Signal.Address a -> a -> (() -> b) -> Effects.Effects b | ||
sendAsEffect address value action = | ||
Signal.send address value | ||
|> Effects.task | ||
|> Effects.map action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.