packages feed

tweet-hs-1.0.2.3: tweet-hs.cabal

cabal-version:      >=1.10
name:               tweet-hs
version:            1.0.2.3
license:            BSD3
license-file:       LICENSE
copyright:          2016-2020 Vanessa McHale
maintainer:         vamchale@gmail.com
author:             Vanessa McHale
stability:          stable
synopsis:           Command-line tool for twitter
description:        a Command Line Interface Tweeter
category:           Web
build-type:         Simple
extra-source-files:
    README.md
    cabal.project.local
    bash/mkCompletions
    test/data

source-repository head
    type:     git
    location: https://hub.darcs.net/vmchale/tweet-hs

flag llvm-fast
    description: Enable build with llvm backend
    default:     False

flag development
    description: Enable -Werror
    default:     False
    manual:      True

flag parallel-gc
    description: Use parallel garbage collector
    default:     False

library
    exposed-modules:
        Web.Tweet
        Web.Tweet.Parser
        Web.Tweet.Sign
        Web.Tweet.API
        Web.Tweet.Utils

    hs-source-dirs:   src
    other-modules:
        Web.Tweet.Types
        Web.Tweet.Utils.Colors
        Web.Tweet.API.Internal
        Web.Tweet.Utils.API

    default-language: Haskell2010
    ghc-options:
        -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates

    build-depends:
        base >=4.11 && <5,
        http-client-tls,
        http-client,
        http-types,
        authenticate-oauth,
        megaparsec >=7.0,
        bytestring,
        split,
        microlens,
        unordered-containers,
        htoml-megaparsec >=2.1.0.0,
        text,
        containers >=0.6.0.0,
        ansi-wl-pprint,
        composition-prelude >=3.0.0.0,
        extra

    if flag(development)
        ghc-options: -Werror

executable tweet
    main-is:          Main.hs
    hs-source-dirs:   app
    other-modules:    Paths_tweet_hs
    default-language: Haskell2010
    ghc-options:
        -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates

    build-depends:
        base,
        tweet-hs,
        optparse-applicative,
        directory,
        bytestring

    if flag(llvm-fast)
        ghc-options: -fllvm -optlo-O3 -O3

    if flag(parallel-gc)
        ghc-options: -rtsopts -with-rtsopts=-N

    if flag(development)
        ghc-options: -Werror

benchmark tweeths-bench
    type:             exitcode-stdio-1.0
    main-is:          Bench.hs
    hs-source-dirs:   bench
    default-language: Haskell2010
    ghc-options:
        -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates

    build-depends:
        base,
        criterion,
        tweet-hs,
        bytestring,
        megaparsec

    if flag(llvm-fast)
        ghc-options: -fllvm -optlo-O3 -O3

    if flag(development)
        ghc-options: -Werror