packages feed

scotty-form-0.5.0.0: scotty-form.cabal

cabal-version: 3.8
name: scotty-form
version: 0.5.0.0
synopsis: Html form validation using `ditto`
description: Formlet library for `scotty` using `lucid` and `ditto`
license: MIT
license-file: LICENSE
author: goolord
maintainer: zacharyachurchill@gmail.com
homepage: https://github.com/goolord/scotty-form
bug-reports: https://github.com/goolord/scotty-form/issues
category: Web
build-type: Simple
extra-doc-files:
  CHANGELOG.md
tested-with:
  GHC == 9.6.7
  GHC == 9.8.4
  GHC == 9.10.3
  GHC == 9.12.4
  GHC == 9.14.1

source-repository head
  type: git
  location: https://github.com/goolord/scotty-form.git

common warnings-base
  ghc-options: -Wall

common warnings-modern
  if impl(ghc >= 8.10)
  ghc-options:
    -Wcompat
    -Widentities
    -Wincomplete-record-updates
    -Wincomplete-uni-patterns
    -Wmissing-deriving-strategies
    -Wunused-packages

common warnings-strict
  if impl(ghc >= 9.4)
  ghc-options: -Wredundant-constraints

common extensions-shared
  default-extensions:
    BangPatterns
    FlexibleInstances
    MultiParamTypeClasses
    OverloadedStrings
    RecordWildCards
    TypeApplications
    TypeFamilies

common defaults-ghc2024
  import:
    warnings-base, warnings-modern, warnings-strict, extensions-shared
  default-language: GHC2024

common defaults-ghc2021
  import:
    warnings-base, warnings-modern, warnings-strict, extensions-shared
  default-language: GHC2021
  default-extensions:
    DataKinds
    DerivingStrategies
    LambdaCase

common defaults-legacy
  import: warnings-base, extensions-shared
  default-language: Haskell2010

common defaults
  if impl(ghc >= 9.10)
    import: defaults-ghc2024
  elif impl(ghc >= 9.2)
    import: defaults-ghc2021
  else
    import: defaults-legacy

library
  import: defaults
  exposed-modules:
    Web.Scotty.Form
    Web.Scotty.Trans.Form
  build-depends:
      base        >= 4.14 && < 5
    , text        >= 1.2  && < 3
    , lucid       >= 2.9  && < 3
    , scotty      >= 0.20 && < 1
    , ditto       >= 0.4  && < 0.6
    , ditto-lucid >= 0.4  && < 0.6
    , unliftio    >= 0.2  && < 0.3
  hs-source-dirs: src
  ghc-options: -fno-warn-orphans -Wno-error=orphans