<div dir="ltr">why am i getting warning in the following code?? though it works perfectly!!!<br><br>Prelude> newtype Pair1  c b a=Pair1 {getPair1 :: (a,b,c)}<br><br>Prelude> :{<br>Prelude| instance Functor (Pair1 m n) where<br>Prelude| fmap f (Pair1 (x,y,z))=Pair1 (f x,y,z)<br>Prelude| :}<br><br><interactive>:55:10: Warning:<br>    No explicit implementation for<br>      ‘Prelude.fmap’<br>    In the instance declaration for ‘Functor (Pair1 m n)’<br><br>-- The below shows it is working fine!<br>Prelude> getPair1 $ fmap (*100) (Pair1 (2,3,1))<br>(200,3,1)</div>