?
- jetxee , , : , , , - putOut, IO (). , "" , . , ? - :
main :: IO ()
main = do
sequence_ lst
where lst :: [IO ()]
lst = [out1 1, out2 1 2]
out1 x = putStrLn $ unwords ["Out1", show x]
out2 x y = putStrLn $ unwords ["Out2", show x, show y]
, Haskell. :
- - ,
show, unwords, & c. , IO. IO () - , .. sequence_ main.
" show" -. - Eq, , , , - . , , - , , ( ) Bool .
, Haskell OOP. ad-hoc-, . , , ad-hoc-, , , .., ; Haskell ( ) .
, , (, ) , , (this, self, ..). Haskell, :
; . - , , .
, ; - , , .
, - Monad, , , OOP, #, , - IMonad.
. , , . Graphics.DrawingCombinators , , .