packages feed

joy-rewrite-0.2.0: joy-rewrite.cabal

cabal-version:      2.4

name:               joy-rewrite

version:            0.2.0

synopsis:           Transform Joy code using conditional rewrite rules

description:
  This package implements a rewriting function as detailed in the paper [A
  Rewriting System for Joy](http://www.nsl.com/papers/rewritejoy.html) by Manfred
  von Thun. It can be used to simplify expressions or to replace constant
  expressions by their results.

homepage:           https://github.com/johannes-riecken/joy-rewrite

bug-reports:        https://github.com/johannes-riecken/joy-rewrite/issues

license:            BSD-2-Clause

license-file:       LICENSE

author:             Johannes Riecken

maintainer:         johannes.riecken@gmail.com

category:           Language

extra-source-files: CHANGELOG.md

tested-with:   GHC == 8.0.2
             , GHC == 8.2.2
             , GHC == 8.4.4
             , GHC == 8.6.5
             , GHC == 8.8.4
             , GHC == 8.10.7
             , GHC == 9.0.2
             , GHC == 9.2.2

source-repository head
  type: git
  location: https://github.com/johannes-riecken/joy-rewrite.git

library
    exposed-modules:  Language.Joy.Rewrite

    -- Modules included in this library but not exported.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:

    -- Other library packages from which modules are imported.
    build-depends:
      base >= 4.9.1.0 && < 4.17,
      containers >= 0.5.7.1 && < 0.7,
      monad-loops ^>= 0.4.3,
      hspec ^>= 2.8.3,
      parsec ^>= 3.1.13.0,
      text ^>= 1.2.3.1

    -- Directories containing source files.
    hs-source-dirs:   src

    -- Base language which the package is written in.
    default-language: Haskell2010

test-suite joy-rewrite-test
    -- Base language which the package is written in.
    default-language: Haskell2010

    -- The interface type and version of the test suite.
    type:             exitcode-stdio-1.0

    -- Directories containing source files.
    hs-source-dirs:   test

    -- The entrypoint to the test suite.
    main-is:          RewriteTest.hs

    -- Test dependencies.
    build-depends:
      base >= 4.9.1.0 && < 4.17,
      joy-rewrite,
      hspec ^>= 2.8.3