From b4deaa90d534a0e397ded32f765510fda5d9076f Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Fri, 23 Feb 2018 18:04:42 -0600 Subject: [PATCH 1/2] hpackifying simple-library --- simple-library.hsfiles | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/simple-library.hsfiles b/simple-library.hsfiles index 2313e7c..7af46da 100644 --- a/simple-library.hsfiles +++ b/simple-library.hsfiles @@ -1,28 +1,23 @@ -{-# START_FILE {{name}}.cabal #-} +{-# START_FILE package.yaml #-} name: {{name}} version: 0.1.0.0 -synopsis: Initial project template from stack +synopsis: Simple project template from stack description: Please see README.md homepage: http://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme license: BSD3 -license-file: LICENSE author: {{author-name}}{{^author-name}}Author name here{{/author-name}} maintainer: {{author-email}}{{^author-email}}example@example.com{{/author-email}} copyright: {{copyright}}{{^copyright}}{{year}}{{^year}}2016{{/year}} {{authorName}}{{^authorName}}Author name here{{/authorName}}{{/copyright}} category: {{category}}{{^category}}Web{{/category}} -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 -library - hs-source-dirs: src - exposed-modules: Lib - build-depends: base >= 4.7 && < 5 - default-language: Haskell2010 +dependencies: + - base >= 4.7 && < 5 -source-repository head - type: git - location: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}} +library: + source-dirs: + - src + exposed-modules: + - Lib {-# START_FILE Setup.hs #-} import Distribution.Simple From 263b0f2d067c9d794d05415d7fffb7707a6ca698 Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Fri, 23 Feb 2018 19:02:21 -0600 Subject: [PATCH 2/2] harmonizing with simple-hpack --- simple-library.hsfiles | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simple-library.hsfiles b/simple-library.hsfiles index db368af..fea3603 100644 --- a/simple-library.hsfiles +++ b/simple-library.hsfiles @@ -1,12 +1,14 @@ {-# START_FILE package.yaml #-} name: {{name}} version: 0.1.0.0 -homepage: http://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme +homepage: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme license: BSD3 author: {{author-name}}{{^author-name}}Author name here{{/author-name}} maintainer: {{author-email}}{{^author-email}}example@example.com{{/author-email}} copyright: {{copyright}}{{^copyright}}{{year}}{{^year}}2018{{/year}} {{author-name}}{{^author-name}}Author name here{{/author-name}}{{/copyright}} category: {{category}}{{^category}}Web{{/category}} +extra-source-files: +- README.md dependencies: - base >= 4.7 && < 5