diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-09-13 23:26:45 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-09-13 23:26:45 -0400 |
commit | 123c34af3429c74a24de7b876343060c1f52586b (patch) | |
tree | 462b71cd303cafc1ac0efc363129a950d2ab2397 |
initial
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | countdown.hs | 19 | ||||
-rw-r--r-- | package.yaml | 16 | ||||
-rw-r--r-- | stack.yaml | 67 |
4 files changed, 105 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03080d7 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | .stack-work/ | ||
2 | stack.yaml.lock | ||
3 | cosmic-countdown.cabal | ||
diff --git a/countdown.hs b/countdown.hs new file mode 100755 index 0000000..aff9371 --- /dev/null +++ b/countdown.hs | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/usr/bin/env stack | ||
2 | {- stack script --resolver lts-19.23 --install-ghc -} | ||
3 | {-# OPTIONS_GHC | ||
4 | -Wall | ||
5 | -Wno-unused-imports | ||
6 | -Wno-unused-top-binds | ||
7 | -Wno-name-shadowing | ||
8 | #-} | ||
9 | {-# language NoImplicitPrelude #-} | ||
10 | {-# language RecordWildCards #-} | ||
11 | import Rebase.Prelude hiding (toList) | ||
12 | import Control.Lens | ||
13 | import Data.Foldable (toList) | ||
14 | import Data.Ratio | ||
15 | import Text.Printf | ||
16 | |||
17 | main :: IO () | ||
18 | main = do | ||
19 | return () | ||
diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..6f8baa7 --- /dev/null +++ b/package.yaml | |||
@@ -0,0 +1,16 @@ | |||
1 | name: cosmic-countdown | ||
2 | version: 0.1.0.0 | ||
3 | |||
4 | dependencies: | ||
5 | - base | ||
6 | - rebase | ||
7 | - lens | ||
8 | |||
9 | executables: | ||
10 | countdown: | ||
11 | main: countdown.hs | ||
12 | ghc-options: | ||
13 | - -threaded | ||
14 | - -rtsopts | ||
15 | - -with-rtsopts=-N | ||
16 | |||
diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..8746f6a --- /dev/null +++ b/stack.yaml | |||
@@ -0,0 +1,67 @@ | |||
1 | # This file was automatically generated by 'stack init' | ||
2 | # | ||
3 | # Some commonly used options have been documented as comments in this file. | ||
4 | # For advanced use and comprehensive documentation of the format, please see: | ||
5 | # https://docs.haskellstack.org/en/stable/yaml_configuration/ | ||
6 | |||
7 | # Resolver to choose a 'specific' stackage snapshot or a compiler version. | ||
8 | # A snapshot resolver dictates the compiler version and the set of packages | ||
9 | # to be used for project dependencies. For example: | ||
10 | # | ||
11 | # resolver: lts-3.5 | ||
12 | # resolver: nightly-2015-09-21 | ||
13 | # resolver: ghc-7.10.2 | ||
14 | # | ||
15 | # The location of a snapshot can be provided as a file or url. Stack assumes | ||
16 | # a snapshot provided as a file might change, whereas a url resource does not. | ||
17 | # | ||
18 | # resolver: ./custom-snapshot.yaml | ||
19 | # resolver: https://example.com/snapshots/2018-01-01.yaml | ||
20 | resolver: | ||
21 | url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/23.yaml | ||
22 | |||
23 | # User packages to be built. | ||
24 | # Various formats can be used as shown in the example below. | ||
25 | # | ||
26 | # packages: | ||
27 | # - some-directory | ||
28 | # - https://example.com/foo/bar/baz-0.0.2.tar.gz | ||
29 | # subdirs: | ||
30 | # - auto-update | ||
31 | # - wai | ||
32 | packages: | ||
33 | - . | ||
34 | # Dependency packages to be pulled from upstream that are not in the resolver. | ||
35 | # These entries can reference officially published versions as well as | ||
36 | # forks / in-progress versions pinned to a git hash. For example: | ||
37 | # | ||
38 | # extra-deps: | ||
39 | # - acme-missiles-0.3 | ||
40 | # - git: https://github.com/commercialhaskell/stack.git | ||
41 | # commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a | ||
42 | # | ||
43 | # extra-deps: [] | ||
44 | |||
45 | # Override default flag values for local packages and extra-deps | ||
46 | # flags: {} | ||
47 | |||
48 | # Extra package databases containing global packages | ||
49 | # extra-package-dbs: [] | ||
50 | |||
51 | # Control whether we use the GHC we find on the path | ||
52 | # system-ghc: true | ||
53 | # | ||
54 | # Require a specific version of stack, using version ranges | ||
55 | # require-stack-version: -any # Default | ||
56 | # require-stack-version: ">=2.7" | ||
57 | # | ||
58 | # Override the architecture used by stack, especially useful on Windows | ||
59 | # arch: i386 | ||
60 | # arch: x86_64 | ||
61 | # | ||
62 | # Extra directories used by stack for building | ||
63 | # extra-include-dirs: [/path/to/dir] | ||
64 | # extra-lib-dirs: [/path/to/dir] | ||
65 | # | ||
66 | # Allow a newer minor version of GHC than the snapshot specifies | ||
67 | # compiler-check: newer-minor | ||