Skip to content

Commit

Permalink
Semigroup (Anim a) doesnt need Semigroup a
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed May 4, 2022
1 parent c0923c5 commit 8025785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anim/Anim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ duration (Animation d _) = d
mkAnimation :: Duration -> (Time -> a) -> Animation a
mkAnimation = Animation

instance (Semigroup a) => Semigroup (Animation a) where
instance Semigroup (Animation a) where
(Animation d1 a1) <> (Animation d2 a2) = Animation (d1 + d2)
$ \t -> if t < d1/d
then a1 (t * d/d1)
Expand Down

0 comments on commit 8025785

Please # to comment.