plutus-pioneer-program/code/week04/app/hello.hs

25 lines
334 B
Haskell
Raw Permalink Normal View History

2021-07-16 22:38:16 +02:00
-- public static int foo() {
-- ...
-- }
--
-- ...
--
-- ... foo() ... foo()
-- foo :: Int
-- foo = ...
-- let x = foo in ... x ... x ...
-- ... foo ... foo ...
-- foo :: IO Int
-- foo = ...
main :: IO ()
main = bar -- putStrLn "Hello, world!"
bar :: IO ()
bar = getLine >>= \s ->
getLine >>= \t ->
putStrLn (s ++ t)