Date: 2015-03-30 12:41 pm (UTC)
Ну, кстати, вот пример, когда это плохо:
instance (Traversable t) => Foldable t where
  foldMap = Data.Traversable.foldMapDefault

instance (OtherFoldableChild t) => Foldable t where
  foldMap = Data.OtherFoldableChild.foldMapDefaultOther

f :: (Traversable t, OtherFoldableChild t) => t a -> ...
f xs = ... (foldr (+) 0 xs) ...

Бамц.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

deniok: (Default)
deniok

February 2022

S M T W T F S
  12345
6789101112
13141516171819
20212223 242526
2728     

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 29th, 2025 05:38 pm
Powered by Dreamwidth Studios