Last active
March 16, 2024 14:30
-
-
Save teivah/d18d807dd10bcb9af63f866db67e5a23 to your computer and use it in GitHub Desktop.
Revisions
-
teivah revised this gist
Mar 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ withMonad :: Int -> String -> Maybe String withMonad age name = validateAge age >>= \_ -> return (greet name) -
teivah created this gist
Mar 16, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ withMonad :: Int -> String -> Maybe String withMonad age name = validateAge age >>= \_ -> return $ greet name