packages feed

Shpadoinkle-template-0.0.0.2: Shpadoinkle-template.cabal

cabal-version: 2.2
name:          Shpadoinkle-template
version:       0.0.0.2
category:      Web
author:        Isaac Shapira
maintainer:    isaac.shapira@platonic.systems
license:       BSD-3-Clause
license-file:  LICENSE
build-type:    Simple
extra-source-files:
  README.md
synopsis:
  Read standard file formats into Shpadoinkle with Template Haskell
description:
  This package provides TH functions to read files at compile time
  and embed them into Shpadoinkle views.


source-repository head
  type: git
  location: https://gitlab.com/platonic/shpadoinkle.git


common ghc-options
  ghc-options:
    -Wall
    -Wcompat
    -fwarn-redundant-constraints
    -fwarn-incomplete-uni-patterns
    -fwarn-tabs
    -fwarn-incomplete-record-updates
    -fwarn-identities


library
  import: ghc-options

  exposed-modules:
    Shpadoinkle.Template.TH
    Shpadoinkle.Template

  hs-source-dirs: .

  build-depends:
      Shpadoinkle
    , Shpadoinkle-backend-static
    , base >=4.12.0 && <4.16
    , directory
    , process
    , html-parse
    , template-haskell
    , text >=1.2.3 && <1.3
    , html-entities

  default-language: Haskell2010


test-suite sample
  import: ghc-options

  type: exitcode-stdio-1.0

  main-is: Test.hs

  other-modules:
    Shpadoinkle.Template
    Shpadoinkle.Template.TH

  hs-source-dirs: .

  build-depends:
      Shpadoinkle
    , Shpadoinkle-backend-static
    , Shpadoinkle-template
    , base >=4.12.0 && <4.16
    , directory
    , process
    , file-embed
    , html-parse
    , template-haskell
    , text >=1.2.3 && <1.3
    , html-entities

  default-language: Haskell2010