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 14529ee commit c9a9cbfCopy full SHA for c9a9cbf
eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs
@@ -140,10 +140,7 @@ invalidHereAfterL :: Lens' ValidityInterval (Maybe SlotNo)
140
invalidHereAfterL = lens g s
141
where
142
g :: ValidityInterval -> Maybe SlotNo
143
- g (ValidityInterval _ mb) =
144
- case mb of
145
- SNothing -> Nothing
146
- SJust b -> Just b
+ g (ValidityInterval _ mb) = strictMaybeToMaybe
147
148
s :: ValidityInterval -> Maybe SlotNo -> ValidityInterval
149
s (ValidityInterval ma _) = ValidityInterval ma . maybe SNothing SJust
0 commit comments