import Control.Applicative
main = print $ fmap (*2) (1,2)
produces (1,4)
. I would expect it it to produce (2,4)
but instead the function is applied only to the second element of the tuple.
Update I've basically figured this out almost straight away. I'll post my own answer in a minute..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…