diff options
author | Andrew Cady <d@jerkface.net> | 2018-03-09 16:40:16 -0800 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-03-09 16:40:16 -0800 |
commit | 54b275a0e4d8307b9351123523db264543c1f233 (patch) | |
tree | df49298745365999e94bf4ede0291cd3991c4b28 |
Initial commit - clean empty repo
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | ChangeLog.md | 3 | ||||
-rw-r--r-- | LICENSE | 3 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | Setup.hs | 2 | ||||
-rw-r--r-- | app/Main.hs | 6 | ||||
-rw-r--r-- | package.yaml | 52 | ||||
-rw-r--r-- | src/Lib.hs | 6 | ||||
-rw-r--r-- | stack.yaml | 4 | ||||
-rw-r--r-- | test/Spec.hs | 2 |
10 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0b8e96 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | .stack-work/ | ||
2 | new.cabal | ||
3 | *~ \ No newline at end of file | ||
diff --git a/ChangeLog.md b/ChangeLog.md new file mode 100644 index 0000000..e415883 --- /dev/null +++ b/ChangeLog.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # Changelog for new | ||
2 | |||
3 | ## Unreleased changes | ||
@@ -0,0 +1,3 @@ | |||
1 | Copyright Andrew Cady (c) 2018 | ||
2 | |||
3 | All rights reserved. | ||
diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f7fd6a --- /dev/null +++ b/README.md | |||
@@ -0,0 +1 @@ | |||
# new | |||
diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Setup.hs | |||
@@ -0,0 +1,2 @@ | |||
1 | import Distribution.Simple | ||
2 | main = defaultMain | ||
diff --git a/app/Main.hs b/app/Main.hs new file mode 100644 index 0000000..de1c1ab --- /dev/null +++ b/app/Main.hs | |||
@@ -0,0 +1,6 @@ | |||
1 | module Main where | ||
2 | |||
3 | import Lib | ||
4 | |||
5 | main :: IO () | ||
6 | main = someFunc | ||
diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..03cb634 --- /dev/null +++ b/package.yaml | |||
@@ -0,0 +1,52 @@ | |||
1 | name: new | ||
2 | version: 0.1.0.0 | ||
3 | github: "afcady/new" | ||
4 | license: AllRightsReserved | ||
5 | author: "Andrew Cady" | ||
6 | maintainer: "d@jerkface.net" | ||
7 | copyright: "2018 Andrew Cady" | ||
8 | |||
9 | extra-source-files: | ||
10 | - README.md | ||
11 | - ChangeLog.md | ||
12 | |||
13 | # Metadata used when publishing your package | ||
14 | # synopsis: Short description of your package | ||
15 | # category: Web | ||
16 | |||
17 | # To avoid duplicated efforts in documentation and dealing with the | ||
18 | # complications of embedding Haddock markup inside cabal files, it is | ||
19 | # common to point users to the README.md file. | ||
20 | |||
21 | description: Please see the README on Github at <https://github.com/afcady/new#readme> | ||
22 | |||
23 | dependencies: | ||
24 | - base >= 4.7 && < 5 | ||
25 | - rebase | ||
26 | - lens | ||
27 | |||
28 | library: | ||
29 | source-dirs: src | ||
30 | |||
31 | executables: | ||
32 | new-exe: | ||
33 | main: Main.hs | ||
34 | source-dirs: app | ||
35 | ghc-options: | ||
36 | - -threaded | ||
37 | - -rtsopts | ||
38 | - -with-rtsopts=-N | ||
39 | - -W -Wall | ||
40 | dependencies: | ||
41 | - new | ||
42 | |||
43 | # tests: | ||
44 | # new-test: | ||
45 | # main: Spec.hs | ||
46 | # source-dirs: test | ||
47 | # ghc-options: | ||
48 | # - -threaded | ||
49 | # - -rtsopts | ||
50 | # - -with-rtsopts=-N | ||
51 | # dependencies: | ||
52 | # - new | ||
diff --git a/src/Lib.hs b/src/Lib.hs new file mode 100644 index 0000000..d36ff27 --- /dev/null +++ b/src/Lib.hs | |||
@@ -0,0 +1,6 @@ | |||
1 | module Lib | ||
2 | ( someFunc | ||
3 | ) where | ||
4 | |||
5 | someFunc :: IO () | ||
6 | someFunc = putStrLn "someFunc" | ||
diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..bf51154 --- /dev/null +++ b/stack.yaml | |||
@@ -0,0 +1,4 @@ | |||
1 | resolver: lts-10.8 | ||
2 | packages: | ||
3 | - . | ||
4 | extra-deps: | ||
diff --git a/test/Spec.hs b/test/Spec.hs new file mode 100644 index 0000000..cd4753f --- /dev/null +++ b/test/Spec.hs | |||
@@ -0,0 +1,2 @@ | |||
1 | main :: IO () | ||
2 | main = putStrLn "Test suite not yet implemented" | ||