packages feed

html-email-validate-0.1.0.0: html-email-validate.cabal

name:                html-email-validate
version:             0.1.0.0
synopsis:            Validating an email address against HTML standard
description:         The library allows to validate and parse an email address
                     as it's defined in <https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address HTML standard>.

                     Note that HTML specification of a valid email address is a
                     'willful violation' of RFC 5322. If you want to validate
                     an address against RFC 5322 you should use <https://hackage.haskell.org/package/email-validate email-validate>.
license:             BSD3
license-file:        LICENSE
author:              Konstantin Zudov
maintainer:          konstantin@anche.no
copyright:           (c) Konstantin Zudov, 2015
category:            Text
build-type:          Simple
cabal-version:       >=1.10

library
  exposed-modules:     Text.Html.Email.Validate
  other-extensions:    OverloadedStrings
                       RecordWildCards
                       DeriveDataTypeable
                       DeriveGeneric
  
  build-depends:       base >=4.0 && <5.0
                     , text-show
                     , attoparsec
                     , text
                   
  hs-source-dirs:      src/
  default-language:    Haskell2010
  ghc-options:         -Wall 

test-suite test
    hs-source-dirs:    tests/
    main-is:           Main.hs
    type:              exitcode-stdio-1.0
    build-depends:     base >= 4.7 && < 4.8
                     , attoparsec
                     , hspec
                     , text
                     , regex-pcre-builtin
                     , html-email-validate
                     , QuickCheck
    default-language:  Haskell2010

benchmark bench
    type:              exitcode-stdio-1.0
    hs-source-dirs:    bench
    main-is:           Main.hs
    build-depends:     base
                     , html-email-validate
                     , text
                     , criterion