packages feed

yesod-paginator-0.11.0: yesod-paginator.cabal

name:                   yesod-paginator
version:                0.11.0
synopsis:               A pagination approach for yesod
description:            Paginate a list showing a per-item widget and links to other pages
homepage:               http://github.com/pbrisbin/yesod-paginator
license:                BSD3
license-file:           LICENSE
author:                 Patrick Brisbin
maintainer:             pbrisbin@gmail.com
category:               Web, Yesod
build-type:             Simple
cabal-version:          >=1.8

flag example
  description: Build the example application
  default: False

library
  hs-source-dirs:       src
  exposed-modules:      Yesod.Paginator
                        Yesod.Paginator.Widget

  build-depends:        base       >= 4    && < 5
                      , text       >= 0.11 && < 2.0
                      , yesod      >= 1.4
                      , persistent >= 2.0
                      , resourcet  >= 0.4.4
                      , transformers

  ghc-options: -Wall

test-suite test
    type:               exitcode-stdio-1.0
    main-is:            Spec.hs
    hs-source-dirs:     test
    ghc-options:        -Wall
    build-depends:      base
                      , hspec
                      , yesod-paginator
                      , data-default
                      , wai-extra
                      , yesod-core
                      , yesod-test

executable yesod-paginator-example
  if flag(example)
    buildable: True
  else
    buildable: False

  main-is:              Main.hs
  hs-source-dirs:       example
  ghc-options:          -Wall
  build-depends:        base
                      , yesod
                      , yesod-paginator
                      , warp

source-repository       head
  type:                 git
  location:             git://github.com/pbrisbin/yesod-paginator.git