packages feed

text-rope-zipper-0.1.0.0: text-rope-zipper.cabal

cabal-version:       3.0
name:                text-rope-zipper
version:             0.1.0.0
synopsis:            2D text zipper based on text-rope
homepage:            https://github.com/ners/text-rope-zipper/blob/master/README.md
license:             Apache-2.0
license-file:        LICENCE.md
author:              ners
maintainer:          ners@gmx.ch
bug-reports:         https://github.com/ners/lsp-client/issues
category:            Text
build-type:          Simple
extra-source-files:  CHANGELOG.md, README.md
tested-with:         GHC == { 9.2, 9.4, 9.6, 9.8 }

source-repository head
  type:     git
  location: https://github.com/ners/text-rope-zipper

common common
    default-language: GHC2021
    ghc-options:
        -Weverything
        -Wno-unsafe
        -Wno-missing-safe-haskell-mode
        -Wno-missing-export-lists
        -Wno-missing-import-lists
        -Wno-missing-kind-signatures
        -Wno-all-missed-specialisations
    default-extensions:
        ApplicativeDo
        BlockArguments
        DataKinds
        DefaultSignatures
        DeriveAnyClass
        DeriveGeneric
        DerivingStrategies
        DerivingVia
        ExplicitNamespaces
        LambdaCase
        NoFieldSelectors
        NoImplicitPrelude
        OverloadedLabels
        OverloadedRecordDot
        OverloadedStrings
        RecordWildCards
        RecursiveDo
        TypeFamilies
        ViewPatterns
    build-depends:
        base >= 4.16 && < 5,
        text,
        text-rope >= 0.2 && < 0.3,

library
    import:           common
    hs-source-dirs:   src
    exposed-modules:
        Data.Text.Lazy.Zipper,
        Data.Text.Rope.Zipper,
    other-modules:
        Util,

test-suite spec
    import:           common
    ghc-options:      -threaded
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Spec.hs
    build-depends:
        QuickCheck,
        hspec,
        text-rope-zipper,
    other-modules:
        Data.Text.Lazy.ZipperSpec,
        Data.Text.Rope.ZipperSpec,
        Util,