fromJust is dangerous as it may cause runtime error:
λ> fromJust Nothing
<interactive>:5:1: error:
Variable not in scope: fromJust :: Maybe a0 -> t
There is still one application of fromJust remaining in
mero-halon/src/lib/HA/RecoveryCoordinator/Castor/Cluster/Rules.hs
but at least there is a comment justifying its presence. (Also it is
2:17 AM and I'd rather go to bed.)
fromJust
is dangerous as it may cause runtime error:There is still one application of
fromJust
remaining in mero-halon/src/lib/HA/RecoveryCoordinator/Castor/Cluster/Rules.hs but at least there is a comment justifying its presence. (Also it is 2:17 AM and I'd rather go to bed.)