changeset 2:3fcf9e52cbfa

boilerplate generated with `stack new`
author Jeff Hammel <k0scist@gmail.com>
date Sun, 24 Dec 2017 12:37:27 -0800
parents 6fa43276f012
children b8ecedb09952
files jotto/.gitignore jotto/ChangeLog.md jotto/LICENSE jotto/README.md jotto/Setup.hs jotto/app/Main.hs jotto/jotto.cabal jotto/package.yaml jotto/src/Lib.hs jotto/test/Spec.hs
diffstat 10 files changed, 160 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/.gitignore	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,3 @@
+.stack-work/
+jotto.cabal
+*~
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/ChangeLog.md	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,3 @@
+# Changelog for jotto
+
+## Unreleased changes
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/LICENSE	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,30 @@
+Copyright Jeff Hammel (c) 2017
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+
+    * Neither the name of Author name here nor the names of other
+      contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/README.md	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,3 @@
+# jotto
+
+https://en.wikipedia.org/wiki/Jotto
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/Setup.hs	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/app/Main.hs	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,8 @@
+-- Jotto main
+
+module Main where
+
+import Lib
+
+main :: IO ()
+main = someFunc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/jotto.cabal	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,55 @@
+-- This file has been generated from package.yaml by hpack version 0.14.1.
+--
+-- see: https://github.com/sol/hpack
+
+name:           jotto
+version:        0.1.0.0
+synopsis:       jotto word game
+description:    Play Jotto in Haskell!
+homepage:       https://github.com/k0s/wordplay#readme
+bug-reports:    https://github.com/k0s/wordplay/issues
+author:         Jeff Hammel
+maintainer:     k0scist@gmail.com
+copyright:      2017 Jeff Hammel
+license:        BSD3
+license-file:   LICENSE
+build-type:     Simple
+cabal-version:  >= 1.10
+
+extra-source-files:
+    ChangeLog.md
+    README.md
+
+source-repository head
+  type: git
+  location: https://github.com/k0s/wordplay
+
+library
+  hs-source-dirs:
+      src
+  build-depends:
+      base >= 4.7 && < 5
+  exposed-modules:
+      Lib
+  default-language: Haskell2010
+
+executable jotto-exe
+  main-is: Main.hs
+  hs-source-dirs:
+      app
+  ghc-options: -threaded -rtsopts -with-rtsopts=-N
+  build-depends:
+      base >= 4.7 && < 5
+    , jotto
+  default-language: Haskell2010
+
+test-suite jotto-test
+  type: exitcode-stdio-1.0
+  main-is: Spec.hs
+  hs-source-dirs:
+      test
+  ghc-options: -threaded -rtsopts -with-rtsopts=-N
+  build-depends:
+      base >= 4.7 && < 5
+    , jotto
+  default-language: Haskell2010
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/package.yaml	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,48 @@
+name:                jotto
+version:             0.1.0.0
+github:              "k0s/wordplay"
+license:             BSD3
+author:              "Jeff Hammel"
+maintainer:          "k0scist@gmail.com"
+copyright:           "2017 Jeff Hammel"
+
+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 <https://github.com/githubuser/jotto#readme>
+
+dependencies:
+- base >= 4.7 && < 5
+
+library:
+  source-dirs: src
+
+executables:
+  jotto-exe:
+    main:                Main.hs
+    source-dirs:         app
+    ghc-options:
+    - -threaded
+    - -rtsopts
+    - -with-rtsopts=-N
+    dependencies:
+    - jotto
+
+tests:
+  jotto-test:
+    main:                Spec.hs
+    source-dirs:         test
+    ghc-options:
+    - -threaded
+    - -rtsopts
+    - -with-rtsopts=-N
+    dependencies:
+    - jotto
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/src/Lib.hs	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,6 @@
+module Lib
+    ( someFunc
+    ) where
+
+someFunc :: IO ()
+someFunc = putStrLn "someFunc"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jotto/test/Spec.hs	Sun Dec 24 12:37:27 2017 -0800
@@ -0,0 +1,2 @@
+main :: IO ()
+main = putStrLn "Test suite not yet implemented"