packages feed

file-embed-poly-0.1.0: file-embed-poly.cabal

name:            file-embed-poly
version:         0.1.0
license:         BSD3
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>, Alexis Williams <sasinestro@gmail.com>
maintainer:      Alexis Williams <sasinestro@gmail.com>
synopsis:        Use Template Haskell to embed file contents directly.
description:     Use Template Haskell to read a file or all the files in a
                 directory, and turn them into (path, IsString) pairs
                 embedded in your haskell code.

                 This is a (hopefully temporary) fork of the original file-embed by Micheal Snoyman.
category:        Data
stability:       Stable
cabal-version:   >= 1.8
build-type:      Simple
homepage:        https://github.com/sasinestro/file-embed
extra-source-files: test/injection-test/*.hs
                  , test/sample/.hidden, test/sample/bar, test/sample/baz, test/sample/bin, test/sample/binary
                  , ChangeLog.md
                    README.md

flag test-injection
    description: Builds the test that ensures that embedded file injection works. It's mostly seperate and it pulls in more dependencies.
    default: False

library
    build-depends:   base               >= 4       && < 5
                   , bytestring         >= 0.9.1.4
                   , directory          >= 1.0.0.3
                   , template-haskell   >= 2.5.0.0
                   , filepath
    exposed-modules: Data.FileEmbed
                   , Data.FileEmbed.Inject
    ghc-options:     -Wall

test-suite test
    type: exitcode-stdio-1.0
    main-is: main.hs
    hs-source-dirs: test
    build-depends: base
                 , bytestring
                 , directory
                 , file-embed
                 , filepath
                 , hspec                >= 2.1
    if flag(test-injection)
        build-depends: shelly           >= 1.6.1
        cpp-options: -DTEST_INJECTION

source-repository head
  type:     git
  location: https://github.com/sasinestro/file-embed