aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-02-10 21:31:23 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-02-10 21:31:23 +0300
commitb44005b3b5426bd31c40f74c150ca00775f4dd9f (patch)
treebdf08ce7b2582633fdbe357e4d16d1bd5b31bd25
downloadsuem-b44005b3b5426bd31c40f74c150ca00775f4dd9f.tar
suem-b44005b3b5426bd31c40f74c150ca00775f4dd9f.tar.xz
suem-b44005b3b5426bd31c40f74c150ca00775f4dd9f.zip
Initial commit.
-rw-r--r--.ghci2
-rw-r--r--.gitignore3
-rw-r--r--.stylish-haskell.yamlbin0 -> 400 bytes
-rw-r--r--Main.hs6
-rw-r--r--README1
-rw-r--r--package.yaml20
-rw-r--r--src/Suem.hs4
-rw-r--r--stack.yaml5
8 files changed, 41 insertions, 0 deletions
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
--- /dev/null
+++ b/.stylish-haskell.yaml
Binary files 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