Skip to content

Instantly share code, notes, and snippets.

@teivah
Last active March 16, 2024 13:47
Show Gist options
  • Save teivah/6500ac06dba3ef134eadb6d315298601 to your computer and use it in GitHub Desktop.
Save teivah/6500ac06dba3ef134eadb6d315298601 to your computer and use it in GitHub Desktop.
validateAge :: Int -> Maybe Int
validateAge age
| age >= 18 = return age
| otherwise = Nothing
greet :: String -> String
greet name = "Hello " ++ name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment