packages feed

polysemy-readline-0.3.0.0: polysemy-readline.cabal

cabal-version: 3.0

name:           polysemy-readline
synopsis:       Readline effect for polysemy.
version:        0.3.0.0
category:       User Interfaces, Effect
homepage:       https://github.com/lehmacdj/polysemy-readline#readme
bug-reports:    https://github.com/lehmacdj/polysemy-readline/issues
author:         Devin Lehmacher
maintainer:     Devin Lehmacher
copyright:      (c) 2021 Devin Lehmacher
license:        BSD-2-Clause
license-file:   LICENSE
build-type:     Simple
tested-with:    GHC == 9.2.5
              , GHC == 9.10.1
              , GHC == 9.12.1
extra-doc-files:
    README.md
    ChangeLog.md
description:
  This library provides a Readline effect for polysemy with a primary
  interpreter based on haskeline. Please see the README on GitHub at
  <https://github.com/lehmacdj/polysemy-readline#readme> for more details.

source-repository head
  type: git
  location: https://github.com/lehmacdj/polysemy-readline

common common-options
  ghc-options: -Wall
               -Wincomplete-uni-patterns
               -fplugin=Polysemy.Plugin
               -flate-specialise
               -fspecialise-aggressively
  build-depends:
      base >=4.12 && <5
    , exceptions >=0.10.4 && <0.11
    , haskeline >=0.8.1 && <0.9.0
    , polysemy >=1.5.0 && <1.10
    , polysemy-plugin >=0.3.0 && <0.5
  default-language: Haskell2010

common exe-options
  ghc-options: -threaded -rtsopts -with-rtsopts=-N

library
  import: common-options
  exposed-modules:
      Polysemy.Readline
  other-modules:
      Paths_polysemy_readline
  autogen-modules:
      Paths_polysemy_readline
  hs-source-dirs:
      src

executable echo-repl
  import: common-options
  import: exe-options
  main-is: Echo.hs
  other-modules:
      Paths_polysemy_readline
  autogen-modules:
      Paths_polysemy_readline
  build-depends: polysemy-readline
  hs-source-dirs: examples

test-suite polysemy-readline-test
  import: common-options
  import: exe-options
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_polysemy_readline
  autogen-modules:
      Paths_polysemy_readline
  hs-source-dirs:
      test
  build-depends: polysemy-readline
  default-language: Haskell2010