Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split input events into separate package #276

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
- name: initial cabal.project for sdist
run: |
touch cabal.project
echo "packages: $GITHUB_WORKSPACE/source/." >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/.,$GITHUB_WORKSPACE/source/vty-input" >> cabal.project
cat cabal.project
- name: sdist
run: |
Expand All @@ -199,11 +199,13 @@ jobs:
- name: generate cabal.project
run: |
PKGDIR_vty="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/vty-[0-9.]*')"
PKGDIR_vtyinput="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/vty-input-[0-9.]*')"
echo "PKGDIR_vty=${PKGDIR_vty}" >> "$GITHUB_ENV"
echo "PKGDIR_vtyinput=${PKGDIR_vtyinput}" >> "$GITHUB_ENV"
rm -f cabal.project cabal.project.local
touch cabal.project
touch cabal.project.local
echo "packages: ${PKGDIR_vty}" >> cabal.project
echo "packages: ${PKGDIR_vty},${PKGDIR_vtyinput}" >> cabal.project
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package vty" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
cat >> cabal.project <<EOF
Expand Down
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages: .
tests/
vty-input/
22 changes: 22 additions & 0 deletions vty-input/vty-input.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: vty-input
version: 1.0.0
license: BSD3
maintainer: Jonathan Daugherty ([email protected])
homepage: https://github.com/jtdaugherty/vty
category: User Interfaces
synopsis: Input event definitions for the Vty library
cabal-version: 1.18
build-type: Simple
tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.5

source-repository head
type: git
location: https://github.com/jtdaugherty/vty.git

library
default-language: Haskell2010
hs-source-dirs: src
exposed-modules: Graphics.Vty.Input.Events
build-depends: base >= 4.8 && < 5,
bytestring,
deepseq >= 1.1 && < 1.6
6 changes: 4 additions & 2 deletions vty.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ library
binary,
parsec,
filepath,
directory
directory,
vty-input

if !impl(ghc >= 8.0)
build-depends: semigroups >= 0.16,
Expand All @@ -70,7 +71,6 @@ library
Graphics.Vty.Image.Internal
Graphics.Vty.Inline
Graphics.Vty.Input
Graphics.Vty.Input.Events
Graphics.Vty.Output
Graphics.Vty.Output.Mock
Graphics.Vty.Picture
Expand All @@ -81,4 +81,6 @@ library
Graphics.Vty.UnicodeWidthTable.Main
Graphics.Vty.UnicodeWidthTable.Query
Graphics.Vty.UnicodeWidthTable.Types
reexported-modules: Graphics.Vty.Input.Events

c-sources: cbits/mk_wcwidth.c
Loading