{-# START_FILE readme.md #-} {{name}} === [![Build Status](https://travis-ci.org/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}.svg)](https://travis-ci.org/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}) [![Hackage](https://img.shields.io/hackage/v/{{name}}.svg)](https://hackage.haskell.org/package/{{name}}) develop ---- ``` stack build --test --file-watch ``` {-# START_FILE app/{{name}}.hs #-} {-# LANGUAGE NegativeLiterals #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RebindableSyntax #-} {-# OPTIONS_GHC -Wall #-} import NumHask.Prelude main :: IO () main = pure () {-# START_FILE {{name}}.cabal #-} cabal-version: 2.4 name: {{name}} version: 0.0.1 synopsis: See readme.md description: See readme.md for description. category: project author: {{author-name}}{{^author-name}}Author name here{{/author-name}} maintainer: {{author-email}} copyright: {{copyright}}{{^copyright}}{{year}}{{^year}}2020{{/year}} {{authorName}}{{^authorName}}Author name here{{/authorName}}{{/copyright}} license: BSD-3-Clause homepage: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme bug-reports: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}/issues build-type: Simple source-repository head type: git location: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}} library hs-source-dirs: src default-extensions: ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints build-depends: base >=4.7 && <5, numhask >= 0.7 && < 0.8, exposed-modules: other-modules: default-language: Haskell2010 executable {{name}} main-is: {{name}}.hs hs-source-dirs: app build-depends: base >= 4.7 && < 5, numhask >= 0.7 && < 0.8, {{name}} default-language: Haskell2010 default-extensions: ghc-options: -funbox-strict-fields -fforce-recomp -threaded -rtsopts -with-rtsopts=-N test-suite test type: exitcode-stdio-1.0 main-is: test.hs hs-source-dirs: test build-depends: base >=4.7 && <5, doctest >= 0.16 && < 0.18, numhask >= 0.7 && < 0.8, {{name}} default-language: Haskell2010 default-extensions: ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints {-# START_FILE .gitignore #-} /.stack-work/ /dist-newstyle/ stack.yaml.lock **/.DS_Store cabal.project.local {-# START_FILE .projectile #-} {-# START_FILE .gitattributes #-} other/* linguist-documentation index.html linguist-documentation {-# START_FILE LICENSE #-} Copyright {{author-name}}{{^author-name}}Author name here{{/author-name}} (c) {{year}}{{^year}}2020{{/year}} 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}}{{^author-name}}Author name here{{/author-name}} 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. {-# START_FILE .travis.yml #-} language: generic cache: directories: - $HOME/.stack - $TRAVIS_BUILD_DIR/.stack-work matrix: include: - env: BUILD=stack # a -Werror build that is allowed to fail - env: BUILD=werror allow_failures: - env: BUILD=werror install: - | PATH=$HOME/.local/bin:$PATH mkdir -p ~/.local/bin travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' script: - | case "$BUILD" in stack) stack --no-terminal $ARGS test --haddock --no-haddock-deps ;; werror) stack --no-terminal $ARGS test --haddock --no-haddock-deps --ghc-options -Werror --ghc-options -Wcompat --ghc-options -Wincomplete-record-updates --ghc-options -Wincomplete-uni-patterns --ghc-options -Wredundant-constraints ;; esac {-# START_FILE stack.yaml #-} resolver: nightly-2020-11-19 packages: - . extra-deps: - numhask-0.7.0.0 - protolude-0.3.0 - random-1.2.0 - splitmix-0.1.0.3 {-# START_FILE hie.yaml #-} cradle: stack: - path: "./app/{{name}}.hs" component: "{{name}}:exe:{{name}}" - path: "./src" component: "{{name}}:lib" - path: "./test/{{name}}.hs" component: "{{name}}:test:{{name}}" {-# START_FILE test/test.hs #-} {-# LANGUAGE NegativeLiterals #-} {-# LANGUAGE RebindableSyntax #-} {-# OPTIONS_GHC -Wall #-} module Main where import NumHask.Prelude import Test.DocTest main :: IO () main = doctest [ ] {-# START_FILE cabal.project #-} packages: {{name}}.cabal -- if doctests seem broken, uncomment: -- See https://github.com/haskell/cabal/issues/6087 -- write-ghc-environment-files: always allow-newer: random -- Might be helpful when hackage doesn't build properly... keep-going: True