aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Utils
diff options
context:
space:
mode:
authorJoris2016-03-28 17:51:14 +0200
committerJoris2016-03-28 17:51:14 +0200
commit166cd04e4b28770ede854dafc9ae30eae64102fe (patch)
tree2245a31243a165acc6f7355534da44cfd17e6038 /src/client/elm/Utils
parentb0d80a5458d7ba4546e5f01f5b6398ea6d23f981 (diff)
Create an empty but reachable user page
Diffstat (limited to 'src/client/elm/Utils')
-rw-r--r--src/client/elm/Utils/Effects.elm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/elm/Utils/Effects.elm b/src/client/elm/Utils/Effects.elm
new file mode 100644
index 0000000..544352f
--- /dev/null
+++ b/src/client/elm/Utils/Effects.elm
@@ -0,0 +1,10 @@
+module Utils.Effects
+ ( andThen
+ ) where
+
+import Effects exposing (Effects)
+
+andThen : (a, Effects b) -> (a -> (a, Effects b)) -> (a, Effects b)
+andThen a b = case a of
+ (ma, ea) -> case b ma of
+ (mb, eb) -> (mb, Effects.batch [ea, eb])