-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fieldPAla to factor out newtype wrapper logic.
- Loading branch information
Showing
3 changed files
with
93 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
cabal-version: 2.4 | ||
|
||
-- Initial package description | ||
-- 'lib-exe-and-test-with-comments-golden.cabal' generated by 'cabal init'. | ||
-- For further documentation, see http://haskell.org/cabal/users-guide/ | ||
|
||
-- Initial package description 'lib-exe-and-test-with-comments-golden.cabal' generated by | ||
-- 'cabal init'. For further documentation, see: | ||
-- http://haskell.org/cabal/users-guide/ | ||
-- | ||
-- The name of the package. | ||
name: foo | ||
|
||
-- The package version. See the Haskell package versioning policy (PVP) | ||
-- for standards guiding when and how versions should be incremented. | ||
-- The package version. | ||
-- See the Haskell package versioning policy (PVP) for standards | ||
-- guiding when and how versions should be incremented. | ||
-- https://pvp.haskell.org | ||
-- PVP summary: +-+------- breaking API changes | ||
-- | | +----- non-breaking API additions | ||
|
@@ -17,13 +18,11 @@ version: 3.2.1 | |
|
||
-- A short (one-line) description of the package. | ||
synopsis: The foo package | ||
|
||
-- A longer description of the package. | ||
-- description: | ||
|
||
-- URL for the project homepage or repository. | ||
homepage: https://github.com/foo/foo | ||
|
||
-- A URL where users can report bugs. | ||
-- bug-reports: | ||
|
||
|
@@ -33,73 +32,73 @@ license: NONE | |
-- The package author(s). | ||
author: me | ||
|
||
-- An email address to which users can send suggestions, bug reports, and | ||
-- patches. | ||
-- An email address to which users can send suggestions, bug reports, and patches. | ||
maintainer: [email protected] | ||
|
||
-- A copyright notice. | ||
-- copyright: | ||
|
||
category: SomeCat | ||
|
||
-- Extra files to be distributed with the package, such as examples or a | ||
-- README. | ||
-- Extra files to be distributed with the package, such as examples or a README. | ||
extra-source-files: CHANGELOG.md | ||
|
||
|
||
library | ||
-- Modules exported by the library. | ||
exposed-modules: A, B | ||
-- Modules exported by the library. | ||
exposed-modules: | ||
A | ||
B | ||
|
||
-- Modules included in this library but not exported. | ||
-- other-modules: | ||
-- Modules included in this library but not exported. | ||
-- other-modules: | ||
-- LANGUAGE extensions used by modules in this package. | ||
-- other-extensions: | ||
|
||
-- LANGUAGE extensions used by modules in this package. | ||
-- other-extensions: | ||
-- Other library packages from which modules are imported. | ||
build-depends: | ||
base ^>=4.13.0.0, | ||
containers ^>=5.7.0.0, | ||
unordered-containers ^>=2.7.0.0 | ||
|
||
-- Other library packages from which modules are imported. | ||
build-depends: base ^>=4.13.0.0, containers ^>=5.7.0.0, unordered-containers ^>=2.7.0.0 | ||
|
||
-- Directories containing source files. | ||
hs-source-dirs: src | ||
|
||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
-- Directories containing source files. | ||
hs-source-dirs: src | ||
|
||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
|
||
executable foo | ||
-- .hs or .lhs file containing the Main module. | ||
main-is: Main.hs | ||
|
||
-- Modules included in this executable, other than Main. | ||
-- other-modules: | ||
-- .hs or .lhs file containing the Main module. | ||
main-is: Main.hs | ||
-- Modules included in this executable, other than Main. | ||
-- other-modules: | ||
-- LANGUAGE extensions used by modules in this package. | ||
-- other-extensions: | ||
|
||
-- LANGUAGE extensions used by modules in this package. | ||
-- other-extensions: | ||
-- Other library packages from which modules are imported. | ||
build-depends: | ||
base ^>=4.13.0.0, | ||
containers ^>=5.7.0.0, | ||
unordered-containers ^>=2.7.0.0 | ||
|
||
-- Other library packages from which modules are imported. | ||
build-depends: base ^>=4.13.0.0, containers ^>=5.7.0.0, unordered-containers ^>=2.7.0.0 | ||
|
||
-- Directories containing source files. | ||
hs-source-dirs: app | ||
|
||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
-- Directories containing source files. | ||
hs-source-dirs: app | ||
|
||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
|
||
test-suite foo-test | ||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
|
||
-- The interface type and version of the test suite. | ||
type: exitcode-stdio-1.0 | ||
-- Base language which the package is written in. | ||
default-language: Haskell2010 | ||
|
||
-- The directory where the test specifications are found. | ||
hs-source-dirs: tests | ||
-- The interface type and version of the test suite. | ||
type: exitcode-stdio-1.0 | ||
|
||
-- The entrypoint to the test suite. | ||
main-is: MyLibTest.hs | ||
-- Directories containing source files. | ||
hs-source-dirs: tests | ||
|
||
-- Test dependencies. | ||
build-depends: base ^>=4.13.0.0, containers ^>=5.7.0.0, unordered-containers ^>=2.7.0.0 | ||
-- The entrypoint to the test suite. | ||
main-is: MyLibTest.hs | ||
|
||
-- Test dependencies. | ||
build-depends: | ||
base ^>=4.13.0.0, | ||
containers ^>=5.7.0.0, | ||
unordered-containers ^>=2.7.0.0 |