From 54b275a0e4d8307b9351123523db264543c1f233 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 9 Mar 2018 16:40:16 -0800 Subject: Initial commit - clean empty repo --- .gitignore | 3 +++ ChangeLog.md | 3 +++ LICENSE | 3 +++ README.md | 1 + Setup.hs | 2 ++ app/Main.hs | 6 ++++++ package.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/Lib.hs | 6 ++++++ stack.yaml | 4 ++++ test/Spec.hs | 2 ++ 10 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 ChangeLog.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 Setup.hs create mode 100644 app/Main.hs create mode 100644 package.yaml create mode 100644 src/Lib.hs create mode 100644 stack.yaml create mode 100644 test/Spec.hs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0b8e96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.stack-work/ +new.cabal +*~ \ 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 @@ +# Changelog for new + +## Unreleased changes diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..960c7f7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,3 @@ +Copyright Andrew Cady (c) 2018 + +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 @@ +import Distribution.Simple +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 @@ +module Main where + +import Lib + +main :: IO () +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 @@ +name: new +version: 0.1.0.0 +github: "afcady/new" +license: AllRightsReserved +author: "Andrew Cady" +maintainer: "d@jerkface.net" +copyright: "2018 Andrew Cady" + +extra-source-files: +- README.md +- ChangeLog.md + +# Metadata used when publishing your package +# synopsis: Short description of your package +# category: Web + +# To avoid duplicated efforts in documentation and dealing with the +# complications of embedding Haddock markup inside cabal files, it is +# common to point users to the README.md file. + +description: Please see the README on Github at + +dependencies: +- base >= 4.7 && < 5 +- rebase +- lens + +library: + source-dirs: src + +executables: + new-exe: + main: Main.hs + source-dirs: app + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + - -W -Wall + dependencies: + - new + +# tests: +# new-test: +# main: Spec.hs +# source-dirs: test +# ghc-options: +# - -threaded +# - -rtsopts +# - -with-rtsopts=-N +# dependencies: +# - 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 @@ +module Lib + ( someFunc + ) where + +someFunc :: IO () +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 @@ +resolver: lts-10.8 +packages: +- . +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 @@ +main :: IO () +main = putStrLn "Test suite not yet implemented" -- cgit v1.2.3