cabal-version:       2.0
name:                lsfrom
version:             2.0
synopsis:            List directory files starting from a specific name
description:
            `lsfrom` lists the entries of a directory starting from
            a particular file in locale collation order, which
            can be useful for continuing a shell command or script
            after a failure on an entry.
license:             BSD3
license-file:        LICENSE
author:              Jens Petersen <petersen@redhat.com>
maintainer:          Jens Petersen <petersen@redhat.com>
copyright:           2018,2021-2025  Jens Petersen
category:            Utility
homepage:            https://github.com/juhp/lsfrom
bug-reports:         https://github.com/juhp/lsfrom/issues
build-type:          Simple
extra-doc-files:     ChangeLog.md
                     README.md
extra-source-files:  test/files/A
                     test/files/B
                     test/files/C

source-repository head
  type:                git
  location:            https://github.com/juhp/lsfrom.git

executable lsfrom
  hs-source-dirs:      src
  main-is:             Main.hs
  other-modules:       Collate
                       Paths_lsfrom
  autogen-modules:     Paths_lsfrom
  build-depends:       base < 5,
                       directory,
                       extra,
                       filepath,
                       setlocale,
                       simple-cmd >= 0.2.0,
                       simple-cmd-args >= 0.1.8
  default-language:    Haskell2010
  ghc-options:        -fwarn-missing-signatures -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages

test-suite test
  main-is: tests.hs
  type: exitcode-stdio-1.0
  hs-source-dirs: test

  default-language: Haskell2010

  ghc-options:   -Wall
  build-depends: base >= 4 && < 5
               , filepath
               , process
               , simple-cmd
  build-tool-depends:   lsfrom:lsfrom