hwp-book/code/hello_name.hs
Yann Esposito (Yogsototh) 44e1b7805c
initial commit
2018-06-20 22:11:04 +02:00

14 lines
283 B
Haskell
Executable file

#!/usr/bin/env stack
{- stack script
--resolver lts-11.6
--install-ghc
--package protolude
-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
import Protolude
main = do
putText "What is your name?"
name <- getLine
putText ("Hello " <> name <> "!")