-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Hackage at 2020-10-09T23:38:07Z
- Loading branch information
1 parent
1677e9f
commit 735a8ca
Showing
2 changed files
with
169 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
cabal-version: 2.2 | ||
name: citeproc | ||
version: 0.1 | ||
synopsis: Generates citations and bibliography from CSL styles. | ||
description: citeproc parses CSL style files and uses them to | ||
generate a list of formatted citations and bibliography | ||
entries. For more information about CSL, see | ||
<https://citationstyles.org/>. | ||
license: BSD-2-Clause | ||
license-file: LICENSE | ||
author: John MacFarlane | ||
maintainer: jgm@berkeley.edu | ||
copyright: 2020 John MacFarlane | ||
category: Text | ||
build-type: Simple | ||
extra-doc-files: README.md | ||
, CHANGELOG.md | ||
extra-source-files: stack.yaml | ||
cabal.project | ||
locales/*.xml | ||
locales/locales.json | ||
man/citeproc.1.md | ||
test/NOTES.md | ||
test/csl/*.txt | ||
test/extra/*.txt | ||
test/overrides/*.txt | ||
tested-with: GHC == 8.2.2, GHC == 8.4.4, | ||
GHC == 8.6.5, GHC == 8.8.1, | ||
GHC == 8.10.1 | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/jgm/citeproc.git | ||
|
||
flag icu | ||
description: Use Haskell bindings to the ICU library | ||
default: False | ||
|
||
flag executable | ||
description: Build citeproc executable | ||
default: False | ||
|
||
common hie-options | ||
if impl(ghc >= 8.8) | ||
ghc-options: -fwrite-ide-info -hiedir=.hie | ||
|
||
library | ||
import: hie-options | ||
hs-source-dirs: src | ||
exposed-modules: Citeproc | ||
Citeproc.Types | ||
Citeproc.Locale | ||
Citeproc.Style | ||
Citeproc.CslJson | ||
Citeproc.Pandoc | ||
Citeproc.Eval | ||
Citeproc.CaseTransform | ||
other-modules: Citeproc.Element | ||
Citeproc.Data | ||
|
||
build-depends: base >= 4.8 && < 5 | ||
, safe | ||
, bytestring | ||
, text | ||
, containers >= 0.6.0.1 && < 0.7 | ||
, transformers >= 0.5.6 && < 0.6 | ||
, case-insensitive >= 1.2 && < 1.3 | ||
, vector | ||
, scientific | ||
, uniplate | ||
, xml-conduit | ||
, attoparsec | ||
, data-default | ||
, aeson | ||
, filepath | ||
, file-embed | ||
, pandoc-types >= 1.22 && < 1.23 | ||
-- , pretty-show | ||
if flag(icu) | ||
build-depends: text-icu | ||
else | ||
build-depends: rfc5051 >= 0.2 && < 0.3 | ||
|
||
ghc-options: -Wall | ||
-Wincomplete-record-updates | ||
-Wcompat | ||
-Widentities | ||
-Wredundant-constraints | ||
|
||
if impl(ghc >= 8.2) | ||
ghc-options: -Wcpp-undef | ||
if impl(ghc >= 8.4) | ||
ghc-options: -Wincomplete-uni-patterns | ||
-Widentities | ||
-Werror=missing-home-modules | ||
-fhide-source-paths | ||
|
||
|
||
default-language: Haskell2010 | ||
|
||
executable citeproc | ||
import: hie-options | ||
hs-source-dirs: app | ||
main-is: Main.hs | ||
build-depends: base >= 4.8 && < 5 | ||
, citeproc | ||
, bytestring | ||
, text | ||
, aeson | ||
, aeson-pretty | ||
|
||
ghc-options: -Wall | ||
-Wincomplete-record-updates | ||
-Wcompat | ||
-Widentities | ||
-Wredundant-constraints | ||
-optP-Wno-nonportable-include-path | ||
if impl(ghc >= 8.2) | ||
ghc-options: -Wcpp-undef | ||
if impl(ghc >= 8.4) | ||
ghc-options: -Wincomplete-uni-patterns | ||
-Widentities | ||
-fhide-source-paths | ||
default-language: Haskell2010 | ||
if flag(executable) | ||
buildable: True | ||
else | ||
buildable: False | ||
|
||
test-suite spec | ||
import: hie-options | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Spec.hs | ||
|
||
build-depends: base >= 4.8 && < 5 | ||
, citeproc | ||
, bytestring | ||
, text | ||
, containers | ||
, directory | ||
, transformers | ||
, mtl | ||
, timeit | ||
, Diff >= 0.4 | ||
, pretty | ||
, filepath | ||
, aeson | ||
|
||
|
||
ghc-options: -Wall | ||
-threaded | ||
-rtsopts | ||
-with-rtsopts=-N | ||
-Wincomplete-record-updates | ||
-Wcompat | ||
-Widentities | ||
-Wredundant-constraints | ||
if impl(ghc >= 8.2) | ||
ghc-options: -Wcpp-undef | ||
if impl(ghc >= 8.4) | ||
ghc-options: -Wincomplete-uni-patterns | ||
-Widentities | ||
-Werror=missing-home-modules | ||
-fhide-source-paths | ||
|
||
default-language: Haskell2010 | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package-hashes":{"MD5":"87e78b3b97795793f073c2d1f14d31c2","Skein512_512":"eaa62616adb2cd91703683fcee6001d55f24ce4780b1c1ecd60f8a63bff4647373be6a6e501d85a04fb17b747520abc9e6d71c63e8f8cdcfe67ce2205bd24196","SHA1":"3bcb98cd68e1cfd37cc54c89817c4b06dc22dac9","SHA512":"d7debc38cb8edfd7c3e43a01f12d6b830541871bb2a81060a6c61549fd014146ef36a0fe6f689e05cac073826e300f26f55b81ccc3047f335b02252fe9293cbe","SHA256":"afd897392f952c650c1fc89eda8de04f4373911546fbbd094318ec87b3a232c8"},"package-locations":["https://hackage.haskell.org/package/citeproc-0.1/citeproc-0.1.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/citeproc-0.1.tar.gz"],"package-size":552397} |