From d235a180b642f62b19acc582166255f015d38438 Mon Sep 17 00:00:00 2001 From: Carlos Sosa Date: Sat, 21 Mar 2020 18:41:35 -0700 Subject: Move to stack src directory --- src/ch2/Main.hs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/ch2/Main.hs (limited to 'src/ch2/Main.hs') diff --git a/src/ch2/Main.hs b/src/ch2/Main.hs new file mode 100644 index 0000000..74d0054 --- /dev/null +++ b/src/ch2/Main.hs @@ -0,0 +1,28 @@ +import Shape + +main :: IO () +main = do + putStrLn "Convex Polygon:" + putStrLn + $ show + $ area + (polygon + [ (550, 450) + , (455, 519) + , (491, 631) + , (609, 631) + , (645, 519) + ] + ) + putStrLn "Concave Polygon:" + putStrLn + $ show + $ area + (polygon + [ (550, 580) + , (455, 519) + , (491, 631) + , (609, 631) + , (645, 519) + ] + ) -- cgit v1.3-2-g0d8e