module Main where

import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log)
import Data.Array

foreign import process :: forall props. { | props }

main :: Array String -> forall e. Eff (console :: CONSOLE | e) Unit
main input = do
  log "Hello " <> (show (head input)) <> "!"

module Main where

import Prelude
import Data.Array

greeting :: Array String -> String
greeting arr = "Hello " <> (show (head arr)) <> "!"

main :: Array String -> String
main arr = greeting arr

Make main as in 01

Signed-off-by: Joern Bernhardt <7b85a41a628204b76aba4326273a3ccc74bd009a@campudus.com>

Narigo/purescript-fun