packages feed

language-lua-0.11.0.2: language-lua.cabal

cabal-version:      3.4
name:               language-lua
description:        Lua 5.3 lexer, parser and pretty-printer.
version:            0.11.0.2
synopsis:           Lua parser and pretty-printer
homepage:           http://github.com/glguy/language-lua
bug-reports:        http://github.com/glguy/language-lua/issues
license:            BSD-3-Clause
license-file:       LICENSE
author:             Ömer Sinan Ağacan, Eric Mertens
maintainer:         Eric Mertens <emertens@gmail.com>
category:           Language
build-type:         Simple
stability:          Experimental
tested-with: GHC ==9.4.8 || ==9.6.5 || ==9.8.2

extra-source-files:
  CHANGELOG.md
  lua-5.3.1-tests/*.lua
  README.md
  src/Text/PrettyPrint/LICENSE
  tests/numbers
  tests/string-literal-roundtrip.lua
  tests/strings

source-repository head
  type:     git
  location: git://github.com/glguy/language-lua.git

library
  hs-source-dirs:   src
  default-language: Haskell2010
  exposed-modules:
    Language.Lua
    Language.Lua.Annotated
    Language.Lua.Annotated.Lexer
    Language.Lua.Annotated.Parser
    Language.Lua.Annotated.Simplify
    Language.Lua.Annotated.Syntax
    Language.Lua.Parser
    Language.Lua.PrettyPrinter
    Language.Lua.StringLiteral
    Language.Lua.Syntax
    Language.Lua.Token

  other-modules:
    Language.Lua.LexerUtils
    Language.Lua.Utils
    Text.PrettyPrint.Leijen

  build-depends:
      alex-tools  >=0.6  && <0.7
    , array       >=0.4  && <0.6
    , base        >=4.5  && <4.21
    , bytestring  >=0.10 && <0.13
    , deepseq
    , text        >=1.2  && <2.2

  build-tool-depends:      alex:alex >=0, happy:happy >=0
  ghc-options:      -Wall

test-suite tests
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs:   tests
  main-is:          Main.hs
  build-depends:
      base              >=4.5 && <4.20
    , bytestring
    , deepseq
    , directory
    , filepath
    , language-lua
    , QuickCheck
    , tasty
    , tasty-hunit
    , tasty-quickcheck
    , text

  ghc-options:      -Wall

benchmark bench
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  main-is:          Main.hs
  hs-source-dirs:   bench
  ghc-options:      -Wall
  build-depends:
      base
    , criterion
    , directory
    , filepath
    , language-lua
    , text