You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We shouldn't use error but instead should return an Either or similar and correctly handle the case where we don't get a value back in the calling code.
ricky@localhost 99% ~/dev/haskell/habsim/haskell (master)$ git grep error | grep Data | grep -vE ':\s*--'
src/Data/HABSim/Internal.hs: | alt <= (-500) = error "Altitude out of range, too low (<500m)"
src/Data/HABSim/Internal.hs: | otherwise = error "Altitude out of range, too high (>86km)"
The text was updated successfully, but these errors were encountered:
We shouldn't use
error
but instead should return an Either or similar and correctly handle the case where we don't get a value back in the calling code.The text was updated successfully, but these errors were encountered: