Skip to content

Commit

Permalink
fix ComonadEnv third law
Browse files Browse the repository at this point in the history
  • Loading branch information
worldmaker18349276 authored Jul 10, 2024
1 parent 1d03a99 commit fed46ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Control/Comonad/Env/Class.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ asks f x = f (ask x)
-- |
-- | - `ask (local f x) = f (ask x)`
-- | - `extract (local _ x) = extract a`
-- | - `extend g (local f x) = extend (g <<< local f) x`
-- | - `extend g (local f x) = local f (extend (g <<< local f) x)`
class ComonadAsk e w <= ComonadEnv e w | w -> e where
local :: forall a. (e -> e) -> w a -> w a

Expand Down

0 comments on commit fed46ab

Please sign in to comment.