@@ -0,0 +1,11 @@ | |||
#+Title: README for Haskell for the Working Programmer | |||
#+Author: Yann Esposito | |||
* Haskell for the Working Programmer | |||
This repository contains many resources associated with the book Haskell for the | |||
Working Programmer. | |||
- a project template that can be used by stack | |||
- the =part1= contains most examples that are self contained haskell scripts | |||
- the =part2= contains all example projects |
@@ -0,0 +1,14 @@ | |||
#!/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 <> "!") |
@@ -0,0 +1,11 @@ | |||
#!/usr/bin/env stack | |||
{- stack script | |||
--resolver lts-11.6 | |||
--install-ghc | |||
--package protolude | |||
-} | |||
{-# LANGUAGE NoImplicitPrelude #-} | |||
{-# LANGUAGE OverloadedStrings #-} | |||
import Protolude | |||
main = putText "Hello, world!" |