From b44005b3b5426bd31c40f74c150ca00775f4dd9f Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 10 Feb 2021 21:31:23 +0300 Subject: Initial commit. --- .ghci | 2 ++ .gitignore | 3 +++ .stylish-haskell.yaml | Bin 0 -> 400 bytes Main.hs | 6 ++++++ README | 1 + package.yaml | 20 ++++++++++++++++++++ src/Suem.hs | 4 ++++ stack.yaml | 5 +++++ 8 files changed, 41 insertions(+) create mode 100644 .ghci create mode 100644 .gitignore create mode 100644 .stylish-haskell.yaml create mode 100644 Main.hs create mode 100644 README create mode 100644 package.yaml create mode 100644 src/Suem.hs create mode 100644 stack.yaml diff --git a/.ghci b/.ghci new file mode 100644 index 0000000..5ec480d --- /dev/null +++ b/.ghci @@ -0,0 +1,2 @@ +:set prompt ">>> " +:set prompt2 "... " diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..61e1b67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.stack-work/ +*.cabal +*.lock diff --git a/.stylish-haskell.yaml b/.stylish-haskell.yaml new file mode 100644 index 0000000..f9dfdf3 Binary files /dev/null and b/.stylish-haskell.yaml differ diff --git a/Main.hs b/Main.hs new file mode 100644 index 0000000..48920a4 --- /dev/null +++ b/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import Suem + +main :: IO () +main = printROM diff --git a/README b/README new file mode 100644 index 0000000..25d6917 --- /dev/null +++ b/README @@ -0,0 +1 @@ +blah-blah-blah diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..9c54176 --- /dev/null +++ b/package.yaml @@ -0,0 +1,20 @@ +name: suem +version: 0.1.0.0 +synopsis: Suen Emulator + +extra-source-files: +- README + +ghc-options: -O2 -Wall -static -optl-static -optl-pthread + +dependencies: +- base >= 4.7 && < 5 + +library: + source-dirs: src + +executable: + main: Main.hs + ghc-options: -threaded -rtsopts -with-rtsopts=-N + dependencies: + - suem diff --git a/src/Suem.hs b/src/Suem.hs new file mode 100644 index 0000000..f74976e --- /dev/null +++ b/src/Suem.hs @@ -0,0 +1,4 @@ +module Suem (printROM) where + +printROM :: IO () +printROM = putStrLn "ROM" diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..22c9d4d --- /dev/null +++ b/stack.yaml @@ -0,0 +1,5 @@ +packages: +- . +system-ghc: true +resolver: + compiler: ghc-8.8.4 -- cgit v1.2.3