Starting with mail functionality

This commit is contained in:
Eike Kettner
2020-01-05 23:23:28 +01:00
parent 2e3454c7a1
commit f235f3a030
14 changed files with 853 additions and 56 deletions

View File

@ -1,5 +1,6 @@
module Util.Maybe exposing
( isEmpty
( fromString
, isEmpty
, nonEmpty
, or
, withDefault
@ -38,3 +39,16 @@ or listma =
Nothing ->
or els
fromString : String -> Maybe String
fromString str =
let
s =
String.trim str
in
if s == "" then
Nothing
else
Just str