Skip to content

Commit

Permalink
stub out termbox2-bindings-hs package
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Nov 6, 2023
1 parent 72d1a5a commit 73ffa7f
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ packages:
termbox-bindings-hs,
termbox-bindings-c,
termbox-tea,
termbox2-bindings-c
termbox2-bindings-c,
termbox2-bindings-hs
4 changes: 4 additions & 0 deletions termbox2-bindings-c/termbox2-bindings-c.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ description:
<https://github.com/termbox/termbox2>
.
The full source of @termbox2@ is bundled; you do not need to install any system packages to use this library.
.
See also:
.
* @<https://hackage.haskell.org/package/termbox2-bindings-hs termbox2-bindings-hs>@ for higher-level bindings.
homepage: https://github.com/awkward-squad/termbox
license-file: LICENSE
license: BSD-3-Clause
Expand Down
3 changes: 3 additions & 0 deletions termbox2-bindings-hs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## [1.0.0] - Unreleased

- Initial release
11 changes: 11 additions & 0 deletions termbox2-bindings-hs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright 2023 Mitchell Rosen, Travis Staton

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions termbox2-bindings-hs/src/Termbox2/Bindings/Hs.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module Termbox2.Bindings.Hs where
72 changes: 72 additions & 0 deletions termbox2-bindings-hs/termbox2-bindings-hs.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
cabal-version: 2.4

author: Mitchell Rosen
bug-reports: https://github.com/awkward-squad/termbox/issues
build-type: Simple
category: User Interfaces
copyright: (c) 2023 Mitchell Rosen, Travis Staton
description:
This package provides bindings to @termbox2@, a simple C library for writing text-based user interfaces:
<https://github.com/termbox/termbox2>
.
The full source of @termbox2@ is bundled; you do not need to install any system packages to use this library.
.
See also:
.
* @<https://hackage.haskell.org/package/termbox2-bindings-c termbox2-bindings-c>@ for lower-level bindings.
homepage: https://github.com/awkward-squad/termbox
license-file: LICENSE
license: BSD-3-Clause
maintainer: Mitchell Rosen <[email protected]>, Travis Staton <[email protected]>
name: termbox2-bindings-hs
synopsis: termbox2 bindings
tested-with: GHC == 9.6.3, GHC == 9.8.1
version: 1.0.0

extra-doc-files:
CHANGELOG.md

source-repository head
type: git
location: git://github.com/awkward-squad/termbox.git
subdir: termbox2-bindings-hs

-- flag build-examples
-- default: False
-- manual: True

common component
default-language: GHC2021
ghc-options:
-Weverything
-Wno-all-missed-specialisations
-Wno-implicit-prelude
-Wno-missing-import-lists
-Wno-missing-kind-signatures
-Wno-missing-local-signatures
-Wno-missing-safe-haskell-mode
-Wno-monomorphism-restriction
-Wno-prepositive-qualified-module
-Wno-safe
-Wno-unsafe
if impl(ghc >= 9.8)
ghc-options:
-Wno-missing-role-annotations

library
import: component
build-depends:
base ^>= 4.18 || ^>= 4.19,
termbox2-bindings-c ^>= 1.0.0,
exposed-modules: Termbox2.Bindings.Hs
hs-source-dirs: src

-- executable termbox2-bindings-hs-example-demo
-- import: component
-- if !flag(build-examples)
-- buildable: False
-- build-depends:
-- base,
-- termbox2-bindings-hs
-- hs-source-dirs: examples
-- main-is: Demo.hs

0 comments on commit 73ffa7f

Please sign in to comment.