Skip to content

Commit

Permalink
add variables.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin committed Jul 23, 2019
1 parent d028c96 commit 5a67143
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions outputs/variables.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
4
one
two
True
[1,2,3]
1 change: 1 addition & 0 deletions tools/outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ in
linkFarm "haskell-phrasebook-outputs" [
(run "hello-world.txt" ../hello-world.hs)
(run "common-types.txt" ../common-types.hs)
(run "variables.txt" ../variables.hs)
]
14 changes: 14 additions & 0 deletions variables.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
main =
do
let x = 2
putStrLn (show (x + x))

let (b, c) = ("one", "two")
putStrLn b
putStrLn c

let
d = True
e = [1,2,3]
putStrLn (show d)
putStrLn (show e)

0 comments on commit 5a67143

Please sign in to comment.