[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from mbj/fix/package-metadata
Browse files Browse the repository at this point in the history
Fix package metadata
  • Loading branch information
mbj authored May 24, 2020
2 parents cb36c6d + a2c29f7 commit 40779e0
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 20 deletions.
32 changes: 27 additions & 5 deletions mprelude.cabal
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
cabal-version: 1.12
cabal-version: 1.18

-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 5cb61e974088285a251deb8560b6b2871947c9ef04027b2df74a46a755e610a3
-- hash: 0aa41f3aa33d83b40b847d55b5c0478fd12f6114d80c218e6241eab77dce0dc2

name: mprelude
version: 0.1.0
description: Please see the README on Github at <https://github.com/mbj/mprelude#readme>
synopsis: A minimalish prelude.
description: Prelude extracted from observing NoImplicitPrelude using
projects by https://github.com/mbj.
.
Idea is to not design a prelude, but to observe one by
deduplicating repeated imports cross a larger project space.
category: prelude
homepage: https://github.com/mbj/mprelude#readme
bug-reports: https://github.com/mbj/mprelude/issues
maintainer: Markus Schirp <mbj@schirp-dso.com>
license: BSD3
license-file: LICENSE
build-type: Simple
extra-doc-files:
README.md

source-repository head
type: git
location: https://github.com/mbj/mprelude

flag development
description: Run GHC with development flags
manual: True
default: False

library
exposed-modules:
MPrelude
Expand All @@ -27,12 +41,16 @@ library
hs-source-dirs:
src
default-extensions: CPP DataKinds DeriveAnyClass DeriveGeneric DeriveLift DerivingStrategies DuplicateRecordFields FlexibleContexts GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedLists OverloadedStrings RecordWildCards ScopedTypeVariables Strict TemplateHaskell
ghc-options: -Wall -Wcompat -Werror -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields
ghc-options: -Wall -Wcompat -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields
build-depends:
base >4.12 && <14.15
, source-constraints >=0.0.1 && <0.1
, text >=1.2 && <1.3
, text-conversions >=0.3 && <0.4
if flag(development)
ghc-options: -Werror
else
ghc-options: -Wwarn
default-language: Haskell2010

test-suite devtools
Expand All @@ -41,11 +59,15 @@ test-suite devtools
other-modules:
Paths_mprelude
default-extensions: CPP DataKinds DeriveAnyClass DeriveGeneric DeriveLift DerivingStrategies DuplicateRecordFields FlexibleContexts GeneralizedNewtypeDeriving MultiParamTypeClasses NoImplicitPrelude OverloadedLists OverloadedStrings RecordWildCards ScopedTypeVariables Strict TemplateHaskell
ghc-options: -Wall -Wcompat -Werror -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields -rtsopts -threaded -with-rtsopts=-N
ghc-options: -Wall -Wcompat -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-exported-signatures -Wmissing-local-signatures -Wmonomorphism-restriction -Wredundant-constraints -fplugin=SourceConstraints -funbox-strict-fields -rtsopts -threaded -with-rtsopts=-N
build-depends:
base >4.12 && <14.15
, devtools
, source-constraints >=0.0.1 && <0.1
, text >=1.2 && <1.3
, text-conversions >=0.3 && <0.4
if flag(development)
ghc-options: -Werror
else
ghc-options: -Wwarn
default-language: Haskell2010
27 changes: 25 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
name: mprelude
version: 0.1.0
github: mbj/mprelude
description: Please see the README on Github at <https://github.com/mbj/mprelude#readme>
category: prelude
synopsis: A minimalish prelude.
maintainer: Markus Schirp <mbj@schirp-dso.com>
license: BSD3
description: |
Prelude extracted from observing NoImplicitPrelude using
projects by https://github.com/mbj.
Idea is to not design a prelude, but to observe one by
deduplicating repeated imports cross a larger project space.
dependencies:
- base > 4.12 && < 14.15
- source-constraints ^>= 0.0.1
- text ^>= 1.2
- text-conversions ^>= 0.3

flags:
development:
description: Run GHC with development flags
default: false
manual: true

extra-doc-files:
- README.md

library:
source-dirs: src

Expand All @@ -35,7 +52,6 @@ default-extensions:
ghc-options:
- -Wall
- -Wcompat
- -Werror
- -Widentities
- -Wimplicit-prelude
- -Wincomplete-record-updates
Expand All @@ -47,6 +63,13 @@ ghc-options:
- -fplugin=SourceConstraints
- -funbox-strict-fields

when:
- condition: flag(development)
then:
ghc-options: -Werror
else:
ghc-options: -Wwarn

tests:
devtools:
main: test/Devtools.hs
Expand Down
6 changes: 4 additions & 2 deletions stack-8.8.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
resolver: lts-15.13
extra-deps:
- source-constraints-0.0.1@sha256:abdda6ca3d942c81d61ed4374dbc0eee21e9c074da3f17b25d434c2d55df2acc,2979
- tasty-1.3.1@sha256:01e35c97f7ee5ccbc28f21debea02a38cd010d53b4c3087f5677c5d06617a507,2520
- tasty-mgolden-0.0.1@sha256:07fadb592cde353c386c5f38cff75539a5675e9350776ed6f4f0a70247427a78,4214
- git: https://github.com/mbj/devtools-hs
commit: a584eaaf9291a6211ecb16ca37f9e31ea830c015
- git: https://github.com/mbj/source-constraints
commit: 6957db606a5a4906b9e55af4e803859d19900478
flags:
mprelude:
development: true
18 changes: 7 additions & 11 deletions stack-8.8.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: source-constraints-0.0.1@sha256:abdda6ca3d942c81d61ed4374dbc0eee21e9c074da3f17b25d434c2d55df2acc,2979
pantry-tree:
size: 767
sha256: 838aa22a00a46a7a469cce9d4049acd8c94ed9c1e8c0eeb898a6d8e67bdd6818
original:
hackage: source-constraints-0.0.1@sha256:abdda6ca3d942c81d61ed4374dbc0eee21e9c074da3f17b25d434c2d55df2acc,2979
- completed:
hackage: tasty-1.3.1@sha256:01e35c97f7ee5ccbc28f21debea02a38cd010d53b4c3087f5677c5d06617a507,2520
pantry-tree:
Expand All @@ -29,17 +36,6 @@ packages:
original:
git: https://github.com/mbj/devtools-hs
commit: a584eaaf9291a6211ecb16ca37f9e31ea830c015
- completed:
name: source-constraints
version: 0.0.1
git: https://github.com/mbj/source-constraints
pantry-tree:
size: 1170
sha256: ac0264015a7d5f14873f06393b7db6c985529f9afdef15c6319c999cf398b7cd
commit: 6957db606a5a4906b9e55af4e803859d19900478
original:
git: https://github.com/mbj/source-constraints
commit: 6957db606a5a4906b9e55af4e803859d19900478
snapshots:
- completed:
size: 496112
Expand Down

0 comments on commit 40779e0

Please sign in to comment.