aboutsummaryrefslogtreecommitdiff
path: root/client/src/Util/Either.hs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/Util/Either.hs')
-rw-r--r--client/src/Util/Either.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/Util/Either.hs b/client/src/Util/Either.hs
new file mode 100644
index 0000000..2910d95
--- /dev/null
+++ b/client/src/Util/Either.hs
@@ -0,0 +1,7 @@
+module Util.Either
+ ( eitherToMaybe
+ ) where
+
+eitherToMaybe :: Either a b -> Maybe b
+eitherToMaybe (Right b) = Just b
+eitherToMaybe _ = Nothing