diff options
Diffstat (limited to 'src/client/Utils/Maybe.elm')
-rw-r--r-- | src/client/Utils/Maybe.elm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/Utils/Maybe.elm b/src/client/Utils/Maybe.elm new file mode 100644 index 0000000..507d9a4 --- /dev/null +++ b/src/client/Utils/Maybe.elm @@ -0,0 +1,9 @@ +module Utils.Maybe + ( isJust + ) where + +isJust : Maybe a -> Bool +isJust maybe = + case maybe of + Just _ -> True + Nothing -> False |