File: focuslist.cabal

package info (click to toggle)
haskell-focuslist 0.1.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: haskell: 755; makefile: 3
file content (111 lines) | stat: -rw-r--r-- 4,029 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name:                focuslist
version:             0.1.1.0
synopsis:            Lists with a focused element
description:         Please see <https://github.com/cdepillabout/focuslist#readme README.md>.
homepage:            https://github.com/cdepillabout/focuslist
license:             BSD3
license-file:        LICENSE
author:              Dennis Gosnell and Grendel-Grendel-Grendel
maintainer:          cdep.illabout@gmail.com
copyright:           2017-2018 Dennis Gosnell
category:            Text
build-type:          Custom
cabal-version:       1.12
extra-source-files:  README.md
                   , CHANGELOG.md

custom-setup
  setup-depends:     base
                   , Cabal
                   , cabal-doctest >=1.0.2 && <1.1

-- This flag builds the example from the README.md file.  It is only used for
-- testing.  It should be enabled for CI.
flag buildreadme
  description: Build the example from the README.md file.  This
               is normally only used for testing.
  default:     False

library
  hs-source-dirs:      src
  exposed-modules:     Data.FocusList
  build-depends:       base >= 4.9 && < 5
                     , containers >= 0.5.8
                     , lens >= 4.16
                     , mono-traversable
                     , QuickCheck >= 2.11.3
  default-language:    Haskell2010
  ghc-options:         -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates

test-suite focuslist-doctests
  type:                exitcode-stdio-1.0
  main-is:             DocTest.hs
  -- other-modules:       Build_doctests
  hs-source-dirs:      test
  build-depends:       base
                     , doctest
                     , QuickCheck
                     , template-haskell
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

test-suite focuslist-test
  type:                exitcode-stdio-1.0
  main-is:             Test.hs
  hs-source-dirs:      test
  other-modules:       Test.FocusList
                     , Test.FocusList.Invariants
  build-depends:       base
                     , focuslist
                       -- genvalidity >= 1.0.0.0 makes some big changes, like
                       -- dropping the GenInvalid and GenUnchecked classes, as
                       -- well as changing the default implementation of methods
                       -- in the GenValid class.
                     , genvalidity < 1.0.0.0
                     , genvalidity-containers >= 0.5
                     , genvalidity-hspec >= 0.6
                     , hedgehog >= 0.6.1
                     , hspec
                     , lens
                     , QuickCheck
                     , tasty >= 1.1
                     , tasty-hedgehog >= 0.2
                     , tasty-hspec >= 1.1
                       -- See note above about genvalidity.  genvalidity
                       -- doesn't have correct lower bounds on validity.
                     , validity < 0.12.0.0
  default-language:    Haskell2010
  ghc-options:         -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -threaded -rtsopts -with-rtsopts=-N

executable focuslist-readme
  main-is:             README.lhs
  hs-source-dirs:      test/readme
  build-depends:       base
                     , focuslist
                     , markdown-unlit
  ghc-options:         -pgmL markdown-unlit
  default-language:    Haskell2010

  if flag(buildreadme)
    buildable:         True
  else
    buildable:         False


source-repository head
  type:     git
  location: https://github.com/cdepillabout/focuslist/

-- benchmark termonad-bench
--   type:                exitcode-stdio-1.0
--   main-is:             Bench.hs
--   hs-source-dirs:      bench
--   build-depends:       base
--                      , criterion
--                      , termonad
--   default-language:    Haskell2010
--   ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

source-repository head
  type:     git
  location: git@github.com:cdepillabout/focuslist.git