From 170685f6c80e3e66decc1a0b8f34e6446032993c Mon Sep 17 00:00:00 2001 From: mtgmonkey Date: Thu, 11 Dec 2025 23:03:15 +0100 Subject: [PATCH] remove extra files --- CHANGELOG.md | 7 +++++++ hs-rgfw.cabal | 2 +- lib/Main.hs | 38 ------------------------------------- scripts/delete-generated.sh | 13 ------------- scripts/generate.sh | 13 ------------- 5 files changed, 8 insertions(+), 65 deletions(-) delete mode 100644 lib/Main.hs delete mode 100755 scripts/delete-generated.sh delete mode 100755 scripts/generate.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b91845..2a1de8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) - support for actually doing anything - autogen code +## [0.1.0.2] -- 2025-12-11 + +### Removed + +- `scripts` +- `lib/Main.hs` + ## [0.1.0.1] -- 2025-12-11 - does removing wayland but leaving the API intact count as breaking? diff --git a/hs-rgfw.cabal b/hs-rgfw.cabal index 25b9910..cbe56f9 100644 --- a/hs-rgfw.cabal +++ b/hs-rgfw.cabal @@ -3,7 +3,7 @@ name: hs-rgfw -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 0.1.0.1 +version: 0.1.0.2 -- A short (one-line) description of the package. -- synopsis: -- A longer description of the package. 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 () diff --git a/scripts/delete-generated.sh b/scripts/delete-generated.sh deleted file mode 100755 index ad9555f..0000000 --- a/scripts/delete-generated.sh +++ /dev/null @@ -1,13 +0,0 @@ -rm lib/xdg-shell.h -rm lib/xdg-shell.c -rm lib/xdg-decoration-unstable-v1.h -rm lib/xdg-toplevel-icon-v1.c -rm lib/xdg-toplevel-icon-v1.h -rm lib/xdg-decoration-unstable-v1.c -rm lib/relative-pointer-unstable-v1.h -rm lib/relative-pointer-unstable-v1.c -rm lib/pointer-constraints-unstable-v1.h -rm lib/pointer-constraints-unstable-v1.c -rm lib/xdg-output-unstable-v1.h -rm lib/xdg-output-unstable-v1.c -true diff --git a/scripts/generate.sh b/scripts/generate.sh deleted file mode 100755 index dfa85dd..0000000 --- a/scripts/generate.sh +++ /dev/null @@ -1,13 +0,0 @@ -wayland-scanner client-header /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml lib/xdg-shell.h -wayland-scanner public-code /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml lib/xdg-shell.c -wayland-scanner client-header /usr/share/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml lib/xdg-decoration-unstable-v1.h -wayland-scanner public-code /usr/share/wayland-protocols/staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml lib/xdg-toplevel-icon-v1.c -wayland-scanner client-header /usr/share/wayland-protocols/staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml lib/xdg-toplevel-icon-v1.h -wayland-scanner public-code /usr/share/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml lib/xdg-decoration-unstable-v1.c -wayland-scanner client-header /usr/share/wayland-protocols/unstable/relative-pointer/relative-pointer-unstable-v1.xml lib/relative-pointer-unstable-v1.h -wayland-scanner public-code /usr/share/wayland-protocols/unstable/relative-pointer/relative-pointer-unstable-v1.xml lib/relative-pointer-unstable-v1.c -wayland-scanner client-header /usr/share/wayland-protocols/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml lib/pointer-constraints-unstable-v1.h -wayland-scanner public-code /usr/share/wayland-protocols/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml lib/pointer-constraints-unstable-v1.c -wayland-scanner client-header /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml lib/xdg-output-unstable-v1.h -wayland-scanner public-code /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml lib/xdg-output-unstable-v1.c -true