File: file-embed.cabal

package info (click to toggle)
haskell-file-embed 0.0.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 96 kB
  • sloc: haskell: 301; makefile: 3
file content (42 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name:            file-embed
version:         0.0.16.0
license:         BSD2
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.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, bytestring) pairs
                 embedded in your Haskell code.
category:        Data
stability:       Stable
cabal-version:   >= 1.10
build-type:      Simple
homepage:        https://github.com/snoyberg/file-embed
extra-source-files: test/main.hs, test/sample/foo, test/sample/bar/baz,
                    ChangeLog.md
                    README.md

library
    default-language: Haskell2010
    build-depends:   base               >= 4.9.1   && < 5
                   , bytestring         >= 0.9.1.4
                   , directory          >= 1.0.0.3
                   , template-haskell
                   , filepath
    exposed-modules: Data.FileEmbed
    ghc-options:     -Wall

test-suite test
    default-language: Haskell2010
    type: exitcode-stdio-1.0
    main-is: main.hs
    hs-source-dirs: test
    build-depends: base
                 , bytestring
                 , file-embed
                 , filepath

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