~misterio/veraoPFPA-Notas

56852ac6337e3bc5488f430d394d259fcfdf00cc — Gabriel Fontes 5 months ago 45f9542
adiciona modulo de hello
7 files changed, 11 insertions(+), 3 deletions(-)

R projetos-aula/aula06/{.gitignore => hello/.gitignore}
R projetos-aula/aula06/{aula06.cabal => hello/aula06.cabal}
R projetos-aula/aula06/{package.yaml => hello/package.yaml}
A projetos-aula/aula06/hello/src/Hello.hs
R projetos-aula/aula06/{src/Main.hs => hello/src/Main.hs}
R projetos-aula/aula06/{stack.yaml => hello/stack.yaml}
R projetos-aula/aula06/{stack.yaml.lock => hello/stack.yaml.lock}
R projetos-aula/aula06/.gitignore => projetos-aula/aula06/hello/.gitignore +0 -0
R projetos-aula/aula06/aula06.cabal => projetos-aula/aula06/hello/aula06.cabal +1 -0
@@ 11,6 11,7 @@ build-type:     Simple
executable aula06
  main-is: Main.hs
  other-modules:
      Hello
      Paths_aula06
  hs-source-dirs:
      src

R projetos-aula/aula06/package.yaml => projetos-aula/aula06/hello/package.yaml +3 -2
@@ 1,5 1,6 @@
name:                aula06
version:             0.1.0.0
name: aula06
version: 0.1.0.0
license: MIT

executable:
  main:        Main.hs

A projetos-aula/aula06/hello/src/Hello.hs => projetos-aula/aula06/hello/src/Hello.hs +5 -0
@@ 0,0 1,5 @@
module Hello where


hello :: String -> IO ()
hello name = putStrLn $ "Hello, " ++ name ++ "!"

R projetos-aula/aula06/src/Main.hs => projetos-aula/aula06/hello/src/Main.hs +2 -1
@@ 1,4 1,5 @@
module Main where
import Hello (hello)

main :: IO ()
main = putStrLn "Hello, World!"
main = hello "World"

R projetos-aula/aula06/stack.yaml => projetos-aula/aula06/hello/stack.yaml +0 -0
R projetos-aula/aula06/stack.yaml.lock => projetos-aula/aula06/hello/stack.yaml.lock +0 -0