Let\'s say I want to make a special case for a function that matches strings that start with the character \'Z\'. I could easily do it using pattern matching by doing someth
myFunc str = case stripPrefix "toaster" str of Just restOfString -> something restOfString Nothing -> somethingElse
This is why stripPrefix returns a Maybe type.