Update based on feedback

Use fromMaybe instead of a simple case
Remove unnecessary type casting
Curry urlMatch
Use guards in processContents