From 123c683bac212de47af707b7a47acb277a9a0d06 Mon Sep 17 00:00:00 2001
From: Eduardo Trujillo <ed@chromabits.com>
Date: Sat, 26 Dec 2020 16:42:48 -0800
Subject: [PATCH] chore(hpack): Switch to hpack (package.yaml)

---
 package.yaml |  76 +++++++++++++++++++
 shift.cabal  | 207 +++++++++++++++++++++++++++++++++------------------
 2 files changed, 212 insertions(+), 71 deletions(-)
 create mode 100644 package.yaml

diff --git a/package.yaml b/package.yaml
new file mode 100644
index 0000000..4cfa0b6
--- /dev/null
+++ b/package.yaml
@@ -0,0 +1,76 @@
+name: shift
+version: 0.0.0.5
+synopsis: A CHANGELOG generator
+description: |
+  A Haskell library and executable that allowes generating changelogs from a
+  Git repository's history.
+homepage: https://gitlab.chromabits.com/etcinit/shift
+license: Apache
+author: Eduardo Trujillo
+maintainer: ed@trujillo.io
+copyright: Eduardo Trujillo <ed@trujillo.io>
+category: Development
+extra-source-files:
+  - README.md
+  - test/**/*.hs
+
+ghc-options: -Wall
+
+dependencies:
+  - base >= 4.7 && < 5
+  - versions
+  - text
+  - hgit
+  - containers
+  - megaparsec
+  - unordered-containers
+  - string-conversions
+  - bytestring
+  - data-default
+  - lens
+  - transformers
+  - process
+  - optparse-applicative
+  - mtl
+  - http-client
+  - http-client-tls
+  - github
+  - aeson
+  - io-memoize
+  - vector
+  - exceptions
+  - semigroups
+  - cmark-gfm
+  - scotty
+
+library:
+  source-dirs:
+    - src
+  exposed-modules:
+    - Shift
+    - Shift.CLI
+    - Shift.Generate
+    - Shift.Git
+    - Shift.Parsers
+    - Shift.Processing
+    - Shift.Rendering
+    - Shift.Server
+    - Shift.Types
+    - Shift.Utilities
+    - GitHub.UserSearch
+  other-modules: []
+
+executables:
+  dab:
+    source-dirs: app
+    main: Main.hs
+    dependencies:
+      - shift
+
+tests:
+  unit:
+    main: Main.hs
+    source-dirs:
+      - test
+    dependencies:
+      - shift
diff --git a/shift.cabal b/shift.cabal
index dc3f719..2b69ecf 100644
--- a/shift.cabal
+++ b/shift.cabal
@@ -1,75 +1,140 @@
-name:                shift
-version:             0.0.0.2
-synopsis:            A CHANGELOG generator
-description:         Please see README.md
-homepage:            https://phabricator.chromabits.com/diffusion/SHFT/
-license:             Apache
-license-file:        LICENSE
-author:              Eduardo Trujillo
-maintainer:          ed@chromabits.com
-copyright:           2016 Eduardo Trujillo
-category:            Git
-build-type:          Simple
--- extra-source-files:
-cabal-version:       >=1.10
+cabal-version: 1.12
 
-library
-  hs-source-dirs:      src
-  exposed-modules:     Shift
-                     , Shift.CLI
-                     , Shift.Generate
-                     , Shift.Git
-                     , Shift.Parsers
-                     , Shift.Processing
-                     , Shift.Rendering
-                     , Shift.Server
-                     , Shift.Types
-                     , Shift.Utilities
-                     , GitHub.UserSearch
-  build-depends:       base >= 4.7 && < 5
-                     , versions
-                     , text
-                     , hgit
-                     , containers
-                     , megaparsec
-                     , unordered-containers
-                     , string-conversions
-                     , bytestring
-                     , data-default
-                     , lens
-                     , transformers
-                     , process
-                     , optparse-applicative
-                     , mtl
-                     , http-client
-                     , http-client-tls
-                     , github
-                     , aeson
-                     , io-memoize
-                     , vector
-                     , exceptions
-                     , semigroups
-                     , cmark-gfm
-                     , scotty
-  default-language:    Haskell2010
+-- This file has been generated from package.yaml by hpack version 0.34.2.
+--
+-- see: https://github.com/sol/hpack
+
+name:           shift
+version:        0.0.0.5
+synopsis:       A CHANGELOG generator
+description:    A Haskell library and executable that allowes generating changelogs from a
+                Git repository's history.
+category:       Development
+homepage:       https://gitlab.chromabits.com/etcinit/shift
+author:         Eduardo Trujillo
+maintainer:     ed@trujillo.io
+copyright:      Eduardo Trujillo <ed@trujillo.io>
+license:        Apache
+license-file:   LICENSE
+build-type:     Simple
+extra-source-files:
+    README.md
+    test/Spec.hs
 
-executable shift
-  hs-source-dirs:      app
-  main-is:             Main.hs
-  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
-  build-depends:       base
-                     , shift
-  default-language:    Haskell2010
+library
+  exposed-modules:
+      Shift
+      Shift.CLI
+      Shift.Generate
+      Shift.Git
+      Shift.Parsers
+      Shift.Processing
+      Shift.Rendering
+      Shift.Server
+      Shift.Types
+      Shift.Utilities
+      GitHub.UserSearch
+  hs-source-dirs:
+      src
+  ghc-options: -Wall
+  build-depends:
+      aeson
+    , base >=4.7 && <5
+    , bytestring
+    , cmark-gfm
+    , containers
+    , data-default
+    , exceptions
+    , github
+    , hgit
+    , http-client
+    , http-client-tls
+    , io-memoize
+    , lens
+    , megaparsec
+    , mtl
+    , optparse-applicative
+    , process
+    , scotty
+    , semigroups
+    , string-conversions
+    , text
+    , transformers
+    , unordered-containers
+    , vector
+    , versions
+  default-language: Haskell2010
 
-test-suite shift-test
-  type:                exitcode-stdio-1.0
-  hs-source-dirs:      test
-  main-is:             Spec.hs
-  build-depends:       base
-                     , shift
-  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
-  default-language:    Haskell2010
+executable dab
+  main-is: Main.hs
+  other-modules:
+      Paths_shift
+  hs-source-dirs:
+      app
+  ghc-options: -Wall
+  build-depends:
+      aeson
+    , base >=4.7 && <5
+    , bytestring
+    , cmark-gfm
+    , containers
+    , data-default
+    , exceptions
+    , github
+    , hgit
+    , http-client
+    , http-client-tls
+    , io-memoize
+    , lens
+    , megaparsec
+    , mtl
+    , optparse-applicative
+    , process
+    , scotty
+    , semigroups
+    , shift
+    , string-conversions
+    , text
+    , transformers
+    , unordered-containers
+    , vector
+    , versions
+  default-language: Haskell2010
 
-source-repository head
-  type:     git
-  location: https://github.com/githubuser/shift
+test-suite unit
+  type: exitcode-stdio-1.0
+  main-is: Main.hs
+  other-modules:
+      Spec
+      Paths_shift
+  hs-source-dirs:
+      test
+  ghc-options: -Wall
+  build-depends:
+      aeson
+    , base >=4.7 && <5
+    , bytestring
+    , cmark-gfm
+    , containers
+    , data-default
+    , exceptions
+    , github
+    , hgit
+    , http-client
+    , http-client-tls
+    , io-memoize
+    , lens
+    , megaparsec
+    , mtl
+    , optparse-applicative
+    , process
+    , scotty
+    , semigroups
+    , shift
+    , string-conversions
+    , text
+    , transformers
+    , unordered-containers
+    , vector
+    , versions
+  default-language: Haskell2010
-- 
GitLab