In Haskell, the closest thing to adding 5 to an optional value would be something like:
fmap (5+) my_optional_value