ghorn / atmosphere

1976 US Standard Atmosphere in Haskell
5 stars 2 forks source link

return "Maybe (Atmos a)" instead of "Atmos a" #3

Closed ghorn closed 10 years ago

ghorn commented 10 years ago

This is needed to handle out of bounds inputs, see #1

ghorn commented 10 years ago

The original code says something like "correct to 86km, approximate thereafter", so there seems to be no hard cutoff. Therefore Maybe seems to be unnecessary.