How to handle side effect with Applicative?
Output The applicative equivalent for >> is *>, so you can do ghci> :m Control.Applicative ghci> print 5 *> print 7 5 7 Input – a better case for Applicative import Control.Applicative data Company = Company {name :: String, size :: Int} deriving Show getCompany :: IO Company getCompany = Company <$> getLine <*> readLn … Read more