packages feed

template-hsml-0.2.0.3: template-hsml.cabal

name:                template-hsml
version:             0.2.0.3
synopsis:            Haskell's Simple Markup Language
description:         HSML syntax is very similar to that of XML, but there are less rules.
                     The main advantage over plain XML or HTML is that it allows you to embed Haskell declarations
                     and expression directly into your template.

                     The main advantage over something like Blaze is that it saves
                     you the overhead of using Blaze's combinators. It's also relatively easy to port your existing
                     plain HTML templates into HSML (most of the times, cut & paste will suffice).

                     For examples, see the examples directory.
license:             BSD3
license-file:        LICENSE
author:              Petr Pilař
maintainer:          maintainer+the.palmik@gmail.com
copyright:           Petr Pilař 2012 
category:            Web, Template, Templating
build-type:          Simple
cabal-version:       >=1.8
stability:           Experimental

source-repository head
  type:     git
  location: git://github.com/Palmik/HSML.git 

flag testing
  description: Are we building for testing?
  default: False 

library
  hs-source-dirs:      src

  exposed-modules:
        Template.HSML 
  
  other-modules:       
        Template.HSML.Internal.TH
      , Template.HSML.Internal.Types
      , Template.HSML.Internal.Types.Syntax
      , Template.HSML.Internal.Parser
      , Template.HSML.Internal.Parser.Syntax

  build-depends:
      base == 4.5.*

    , blaze-markup     == 0.5.*
    , haskell-src-exts == 1.13.*
    , haskell-src-meta == 0.5.*
    , parsec           == 3.1.*
    , template-haskell == 2.7.*

  extensions: CPP

  ghc-options: -O2 -Wall
 
  if flag(testing) 
    cpp-options: -DTESTING


test-suite template-hsml-tests
    type:           exitcode-stdio-1.0
    hs-source-dirs: tests
    main-is:        Main.hs
    
    other-modules:
        Parser.Syntax
    

    build-depends:
        base == 4.5.*
      , template-hsml
      , parsec           == 3.1.*
      , QuickCheck == 2.4.*
      , test-framework == 0.6.*
      , test-framework-quickcheck2 == 0.2.*

    ghc-options: -Wall
    cpp-options: -DTESTING