Skip to content

Commit

Permalink
chore: modify MonadStats to not extend parents multiple times (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmill authored Oct 22, 2024
1 parent b20a886 commit 9ac1294
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Aesop/Stats/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ end Stats

abbrev StatsRef := IO.Ref Stats

class MonadStats (m) extends
MonadLiftT (ST IO.RealWorld) m,
MonadLiftT BaseIO m,
MonadOptions m where
class MonadStats (m) extends MonadOptions m where
[instLift : MonadLiftT BaseIO m]
readStatsRef : m StatsRef

instance [MonadStats m] : MonadLift BaseIO m := ⟨MonadStats.instLift.monadLift⟩

export MonadStats (readStatsRef)

variable [Monad m]
Expand Down

0 comments on commit 9ac1294

Please sign in to comment.