packages feed

polytree-0.1.2: polytree.cabal

cabal-version:        2.4
name:                 polytree
version:              0.1.2
synopsis:             A polymorphic rose-tree
description:
                      A rose-tree which has different data in the nodes and leaves
                      .
                      <<https://logo.systemf.com.au/systemf-450x450.jpg>>
license:              BSD-3-Clause
license-file:         LICENCE
author:               Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
maintainer:           Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
copyright:            Copyright (C) 2025-2026 Tony Morris
category:             Data
build-type:           Simple
extra-doc-files:      changelog.md
                      README.md
homepage:             https://gitlab.com/tonymorris/polytree
bug-reports:          https://gitlab.com/tonymorris/polytree/issues
tested-with:          GHC == 9.4.8, GHC == 9.6.5, GHC == 9.8.4, GHC == 9.10.3

source-repository     head
  type:               git
  location:           git@gitlab.com:tonymorris/polytree.git

library
  exposed-modules:    Data.PolyTree

  build-depends:      base >= 4.9 && < 6
                    , bifunctors >= 5.6 && < 7
                    , containers >= 0.6.7 && < 1
                    , free >= 5.2 && < 6
                    , lens >= 5 && < 6
                    , semigroupoids >= 6.0.1 && < 7

  hs-source-dirs:     src

  default-language:   Haskell2010

  ghc-options:        -Wall

  if flag(dev)
    ghc-options:      -Werror

flag dev
  description:        Enable -Werror for development
  manual:             True
  default:            False

test-suite doctest
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  main-is:            Main.hs
  build-depends:      base >= 4.9 && < 6
                    , process >= 1 && < 2
  build-tool-depends: doctest:doctest >= 0.22
  default-language:   Haskell2010
  ghc-options:        -Wall