packages feed

reorder-expression-0.1.0.2: reorder-expression.cabal

cabal-version: 2.4
name:          reorder-expression
version:       0.1.0.2
synopsis:      Reorder expressions in a syntax tree according to operator fixities.
description:
    A library for reordering expressions in a syntax tree generically according to operator associativity and precedence.
    This is useful for languages with custom operators which require reordering expressions after collecting their fixities.
homepage:      https://github.com/1Computer1/reorder-expression
bug-reports:   https://github.com/1Computer1/reorder-expression/issues
license:       MIT
license-file:  LICENSE
author:        comp
maintainer:    onecomputer00@gmail.com
copyright:     (c) 2021- comp
category:      Language

tested-with:
    GHC == 9.2.8
  , GHC == 9.4.8
  , GHC == 9.6.6
  , GHC == 9.8.4
  , GHC == 9.10.1

extra-doc-files:
  CHANGELOG.md
  README.md

source-repository head
  type:     git
  location: git@github.com:1Computer1/reorder-expression.git

common common-options
  ghc-options:
    -Wall
    -Wcompat
    -Widentities
    -Wincomplete-uni-patterns
    -Wincomplete-record-updates
    -Wredundant-constraints
    -Wpartial-fields

  build-depends:
      base >= 4.12 && < 4.21

  default-language: Haskell2010

library
  import:         common-options
  hs-source-dirs: src
  build-depends:

  exposed-modules:
    Expression.Reorder

test-suite reorder-expression-test
  import:         common-options
  hs-source-dirs: test
  main-is:        Main.hs
  type:           exitcode-stdio-1.0
  ghc-options:
    -threaded
    -rtsopts
    -with-rtsopts=-N

  build-depends:
      reorder-expression
    , hspec >= 2.7 && < 3
    , parsec >= 3.1 && < 3.2
    , optics >= 0.4 && < 0.5

  build-tool-depends:
      hspec-discover:hspec-discover >= 2.7 && < 3

  other-modules:
    Test.Expr
    Test.Parser
    Expression.ReorderSpec