Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Feb 11, 2025
1 parent c8dc4c4 commit ccbdb36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1996,9 +1996,9 @@ data ElaborateError = UnsupportedTupleSize | BadInstantiationBug | VariableNotIn
--
-- Output type /does/ contain meta vars.
elaborate :: UTerm () -> Either ElaborateError (UTerm (IRep IMetaVar), Set (Equality (IRep IMetaVar)))
elaborate = fmap getEqualities . flip runStateT empty . flip runReaderT mempty . go
elaborate = fmap getEqualities . flip runStateT empty' . flip runReaderT mempty . go
where
empty = Elaborate {counter = 0, equalities = mempty}
empty' = Elaborate {counter = 0, equalities = mempty}
getEqualities (term, Elaborate {equalities}) = (term, equalities)
go :: UTerm () -> ReaderT (Map String (IRep IMetaVar)) (StateT Elaborate (Either ElaborateError)) (UTerm (IRep IMetaVar))
go = \case
Expand Down

0 comments on commit ccbdb36

Please sign in to comment.