diff options
| author | mtgmonkey <mtgmonkey@nixos> | 2025-12-11 23:03:15 +0100 |
|---|---|---|
| committer | mtgmonkey <mtgmonkey@nixos> | 2025-12-11 23:03:15 +0100 |
| commit | 170685f6c80e3e66decc1a0b8f34e6446032993c (patch) | |
| tree | c18322410bbaae08fcf60a1c31d032051ad034da /lib/Main.hs | |
| parent | 82961432f9b49578dbe56cf0ae8db632e62cbbcb (diff) | |
remove extra files
Diffstat (limited to 'lib/Main.hs')
| -rw-r--r-- | lib/Main.hs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/Main.hs b/lib/Main.hs deleted file mode 100644 index cbed60f..0000000 --- a/lib/Main.hs +++ /dev/null @@ -1,38 +0,0 @@ -{-# LANGUAGE CApiFFI #-} - -module Main (main) where - -import Data.Bits (shiftL, (.|.)) -import Foreign -import Foreign.C.String -import Foreign.C.Types - -import Lib - --------------------------------------------------------------------------------- --- main --------------------------------------------------------------------------------- - -main :: IO () -main = do - window <- withCString "a window" (\name -> - rgfwCreateWindow - name - 0 - 0 - 800 - 600 - $ mkWindowFlags - [ WindowNoResize - , WindowOpenGL - , WindowFullscreen - ] - ) - let loop ctr = do - shouldClose <- rgfwWindowShouldClose window - if 0 /= shouldClose - then return shouldClose - else loop $ ctr + 1 - exitCode <- loop 0 - putStrLn $ show exitCode - return () |
