packages feed

focuslist-0.1.0.0: focuslist.cabal

name:                focuslist
version:             0.1.0.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.7 && < 5
                     , containers
                     , lens
                     , mono-traversable
                     , QuickCheck
  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-containers
                     , genvalidity-hspec
                     , hedgehog
                     , lens
                     , QuickCheck
                     , tasty
                     , tasty-hedgehog
                     , tasty-hspec
  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