Created
July 9, 2015 17:14
-
-
Save joedski/6e0777fad1388174a8b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
port requests : Signal (Task x ()) | |
port requests = | |
let | |
-- Task x a | |
zipCodeLookups = | |
Signal.map lookupZipCode query.signal | |
sendResult = | |
Signal.send results.address | |
sendResultOfLookup lookupTask = | |
Task.toResult lookupTask `andThen` sendResult | |
in | |
Signal.map sendResultOfLookup zipCodeLookups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment