packages feed

orizentic-0.1.0.0: orizentic.cabal

name:                orizentic
version:             0.1.0.0
synopsis:            Token-based authentication and authorization
description:         A library and CLI application for generating and validating authentication tokens and their accompanying database
homepage:            https://github.com/luminescent-dreams/orizentic#readme
license:             BSD3
license-file:        LICENSE
author:              Savanni D'Gerinel
maintainer:          example@example.com
copyright:           2017 Savanni D'Gerinel
category:            Authentication
build-type:          Simple
extra-source-files:  readme.md
cabal-version:       >=1.10


flag dev
    description:        Turn on development settings
    manual:             True
    default:            False


library
    exposed-modules:    LuminescentDreams.Orizentic

    build-depends:        base          >= 4.7      && < 5
                        , aeson         >= 1.0.2    && < 1.1
                        , bytestring    >= 0.10     && < 0.11
                        , containers    >= 0.5.7    && < 0.6
                        , jwt           >= 0.7      && < 0.8
                        , mtl           >= 2.2      && < 2.3
                        , random        >= 1.1      && < 1.2
                        , text          >= 1.2      && < 1.3
                        , time          >= 1.6      && < 1.7
                        , uuid          >= 1.3      && < 1.4

    if flag(dev)
        ghc-options:    -Wall
    else
        ghc-options:    -Wall -Werror
    hs-source-dirs:     src
    default-language:   Haskell2010


executable orizentic
    hs-source-dirs:     app
    main-is:            Orizentic.hs

    build-depends:        base
                        , orizentic
                        , aeson
                        , bytestring            >= 0.10     && < 0.11
                        , jwt
                        , mtl
                        , optparse-applicative  >= 0.13     && < 0.14
                        , text
                        , time

    if flag(dev)
        ghc-options:    -Wall -threaded -rtsopts -with-rtsopts=-N
    else
        ghc-options:    -Wall -threaded -rtsopts -with-rtsopts=-N -Werror
    default-language:   Haskell2010


test-suite orizentic-test
    type:               exitcode-stdio-1.0
    hs-source-dirs:     test
    main-is:            Spec.hs

    other-modules:      UnitSpec

    build-depends:        base
                        , orizentic
                        , hspec
                        , jwt
                        , mtl
                        , time

    ghc-options:        -threaded -rtsopts -with-rtsopts=-N
    default-language:   Haskell2010

source-repository head
    type:     git
    location: https://github.com/luminescent-dreams/orizentic