From 7553b33b4d3caedd5650953acf7ae440f2154735 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Dec 2024 16:35:10 +0530 Subject: Init commit with hello world shit --- src/Chelleport.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Chelleport.hs (limited to 'src/Chelleport.hs') diff --git a/src/Chelleport.hs b/src/Chelleport.hs new file mode 100644 index 0000000..fdd443a --- /dev/null +++ b/src/Chelleport.hs @@ -0,0 +1,18 @@ +module Chelleport where + +import Graphics.Gloss + +open = + display + ( InWindow + "Hello World" -- window title + (400, 150) -- window size + (10, 10) -- window position + ) + white -- background color + picture -- picture to display + +picture = + Translate (-170) (-20) $ -- shift the text to the middle of the window + Scale 0.5 0.5 $ -- display it half the original size + Text "Hello World" -- text to display -- cgit v1.3.1