From 5e2e2ff0cf5011297ada53cd07e4e2619fd77917 Mon Sep 17 00:00:00 2001 From: Annwan Date: Thu, 31 Jul 2025 10:19:27 +0200 Subject: [PATCH] init --- .gitignore | 2 ++ LICENSE | 26 ++++++++++++++++++++++++++ README.md | 1 + Setup.hs | 2 ++ fifth.cabal | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ src/Main.hs | 5 +++++ stack.yaml | 4 ++++ 7 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 Setup.hs create mode 100644 fifth.cabal create mode 100644 src/Main.hs create mode 100644 stack.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc4f860 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.stack-work +/stack.yaml.lock diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0e89325 --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright 2025 Annwan + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..1d404a9 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# fifth diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/fifth.cabal b/fifth.cabal new file mode 100644 index 0000000..456801c --- /dev/null +++ b/fifth.cabal @@ -0,0 +1,48 @@ +cabal-version: 2.2 + +name:fifth +version: 0.1.0.0 +synopsis: A stack based systems language +-- description: +homepage: https://git.annwan.me/software/fifth +license: BSD-3-Clause +license-file: LICENSE +author: Annwan +maintainer: annwan@annwan.me +copyright: 2025 Annwan +category: Compiler +build-type: Simple +extra-source-files: README.md + +library + hs-source-dirs: src + exposed-modules: + other-modules: + build-depends: base >= 4.11 && < 5 + default-language: GHC2024 + ghc-options: -Wall + -Wcompat + -Widentities + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wmissing-export-lists + -Wmissing-home-modules + -Wpartial-fields + -Wredundant-constraints + + +executable fifth + hs-source-dirs: src + main-is: Main.hs + default-language: GHC2024 + build-depends: base >= 4.11 && < 5 + , fifth + ghc-options: -Wall + -Wcompat + -Widentities + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wmissing-export-lists + -Wmissing-home-modules + -Wpartial-fields + -Wredundant-constraints diff --git a/src/Main.hs b/src/Main.hs new file mode 100644 index 0000000..32c6734 --- /dev/null +++ b/src/Main.hs @@ -0,0 +1,5 @@ +module Main (main) where + +main :: IO () +main = do + putStrLn "hello world" diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..e73cef7 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,4 @@ +snapshot: lts-24.2 + +packages: +- .