We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a9cbf commit 2531844Copy full SHA for 2531844
eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs
@@ -127,10 +127,7 @@ invalidBeforeL :: Lens' ValidityInterval (Maybe SlotNo)
127
invalidBeforeL = lens g s
128
where
129
g :: ValidityInterval -> Maybe SlotNo
130
- g (ValidityInterval ma _) =
131
- case ma of
132
- SNothing -> Nothing
133
- SJust a -> Just a
+ g (ValidityInterval ma _) = strictMaybeToMaybe
134
135
s :: ValidityInterval -> Maybe SlotNo -> ValidityInterval
136
s (ValidityInterval _ b) a = ValidityInterval (maybe SNothing SJust a) b
0 commit comments