cabal-version: 1.12

name:           utoy
version:        0.6.2
author:         Paul Brinkmeier
maintainer:     hallo@pbrinkmeier.de
copyright:      2023 Paul Brinkmeier
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    static/utoy.css

source-repository head
  type: git
  location: https://git.pbrinkmeier.de/paul/utoy

library
  exposed-modules:
      UToy.Decode
      UToy.Parsers
      UToy.Names
      UToy.Table
  other-modules:
      Paths_utoy
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      attoparsec
    , base >=4.7 && <5
    , text
    , unicode-data
    , unicode-data-names
    , vector
  default-language: Haskell2010

executable utoy
  main-is: Main.hs
  hs-source-dirs:
      app
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      attoparsec
    , base >=4.7 && <5
    , blaze-html
    , bytestring
    , file-embed
    , http-media
    , servant-server
    , text
    , utoy
    , wai
    , warp
  default-language: Haskell2010

benchmark utoy-bench
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs:
    bench
  build-depends:
      base >=4.7 && <5
    , criterion
    , text
    , unicode-data-names
    , vector
  default-language: Haskell2010