File tree Expand file tree Collapse file tree
src/Deriving/DepTyCheck/Gen/ForAllNeededTypes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ DeriveBodyForType => ClosuringContext m => Elaboration m => DerivationClosure m
6464 startLoop <- get <* put False
6565
6666 -- update names info in types and cons recs if the asked type is not there
67- considerNewType sig. targetType
67+ _ <- considerNewType sig. targetType
6868
6969 -- get the expression of calling the internal gen, derive if necessary
7070 internalGenCall <- do
@@ -98,11 +98,11 @@ DeriveBodyForType => ClosuringContext m => Elaboration m => DerivationClosure m
9898
9999 where
100100
101- considerNewType : TypeInfo -> m ()
101+ considerNewType : TypeInfo -> m (NamesInfoInTypes, ConsRecs )
102102 considerNewType ty = do
103- _ : (NamesInfoInTypes, ConsRecs) <- get
104- let False = isTypeKnown ty | True => pure ()
105- updateNamesAndConsRecs sig. targetType >>= put
103+ nc : (NamesInfoInTypes, ConsRecs) <- get
104+ let False = isTypeKnown ty | True => pure nc
105+ updateNamesAndConsRecs sig. targetType >>= \ x => put x $> x
106106
107107 deriveOne : (GenSignature, Name) -> m ()
108108 deriveOne (sig, name) = do
You can’t perform that action at this time.
0 commit comments