aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-12-02 11:52:41 -0700
committerJosh Rahm <rahm@google.com>2022-12-02 11:52:41 -0700
commit918692d792dfe4b25e8e5d90fddc4c9128b77ea5 (patch)
treef0f9192395a9a5340428cafd01e39a8bac5fdd70
parent053758f578fc8fb0e6ac003a660157c3d40912b7 (diff)
downloadearths-ring-918692d792dfe4b25e8e5d90fddc4c9128b77ea5.tar.gz
earths-ring-918692d792dfe4b25e8e5d90fddc4c9128b77ea5.tar.bz2
earths-ring-918692d792dfe4b25e8e5d90fddc4c9128b77ea5.zip
Make a fully-bonified stack projectsHEADmaster
-rw-r--r--package.yaml24
-rw-r--r--stack.yaml7
2 files changed, 27 insertions, 4 deletions
diff --git a/package.yaml b/package.yaml
new file mode 100644
index 0000000..ecde995
--- /dev/null
+++ b/package.yaml
@@ -0,0 +1,24 @@
+name: earths-ring
+version: 0.5
+executables:
+ earths-ring:
+ main: Hw8.hs
+ source-dirs: .
+
+ghc-options:
+ - -XFlexibleInstances
+ - -XMultiParamTypeClasses
+
+dependencies:
+ - base
+ - OpenGL
+ - bytestring
+ - array
+ - sdl2
+ - random
+ - OpenGLRaw
+ - AC-Angle
+ - deepseq
+ - containers
+ - sdl2-image
+
diff --git a/stack.yaml b/stack.yaml
index 1d67190..c10ef89 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -17,8 +17,7 @@
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
-resolver:
- url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/2.yaml
+resolver: lts-20.2
# User packages to be built.
# Various formats can be used as shown in the example below.
@@ -30,7 +29,7 @@ resolver:
# - auto-update
# - wai
packages:
-- .
+ - .
# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example:
@@ -53,7 +52,7 @@ packages:
#
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
-# require-stack-version: ">=2.7"
+# require-stack-version: ">=2.1"
#
# Override the architecture used by stack, especially useful on Windows
# arch: i386