packages feed

hkgr-0.4: data/template.cabal.tmpl

name:                @PROJECT@
version:             0.1.0
synopsis:            One line summary
description:
        Short paragraph here
license:             BSD3
license-file:        LICENSE
author:              @NAME@ <@EMAIL@>
maintainer:          @NAME@ <@EMAIL@>
copyright:           @YEAR@  @NAME@ <@EMAIL@>
category:            Unclassified
homepage:            https://github.com/@USER@/@PROJECT@
bug-reports:         https://github.com/@USER@/@PROJECT@/issues
build-type:          Simple
--  extra-doc-files:     README.md
--                       ChangeLog.md
cabal-version:       2.0
-- tested-with:         GHC == 8.6.5
--                        | == 8.8.4
--                        | == 8.10.7
--                        | == 9.0.2

source-repository head
  type:                git
  location:            https://github.com/@USER@/@PROJECT@.git

executable @PROJECT@
  main-is:             Main.hs
--  other-modules:       Paths_@PROJECT_@
  hs-source-dirs:      src
  build-depends:       base < 5,
                       @PROJECT@
  default-language:    Haskell2010
  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages

library
  build-depends:       base < 5
  default-language:    Haskell2010
  exposed-modules:     MyLib
  hs-source-dirs:      src

  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages