packages feed

termbox-0.3.0: termbox.cabal

cabal-version: 2.4

name: termbox
version: 0.3.0
category: User Interfaces
description:
  This package provides a thin wrapper around @termbox v1.1.2@, a simple C
  library for writing text-based user interfaces: <https://github.com/termbox/termbox>
  .
  The full source of @termbox v1.1.2@ (1000 lines of C) is bundled; you do
  not need to install any system packages to use this library.
synopsis: termbox bindings
author: Mitchell Rosen
maintainer: Mitchell Rosen <mitchellwrosen@gmail.com>
homepage: https://github.com/mitchellwrosen/termbox
bug-reports: https://github.com/mitchellwrosen/termbox/issues
copyright: (c) 2018-2020, Mitchell Rosen
license: BSD-3-Clause
license-file: LICENSE
build-type: Simple

extra-source-files:
  cbits/LICENSE
  CHANGELOG.md
  include/termbox.h
  README.md

source-repository head
  type: git
  location: git://github.com/mitchellwrosen/termbox.git

flag build-examples
  default: False
  manual: True

common component
  default-extensions:
    GeneralizedNewtypeDeriving
    InstanceSigs
    LambdaCase
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-implicit-prelude
    -Wno-missing-import-lists
    -Wno-missing-local-signatures
    -Wno-monomorphism-restriction
    -Wno-safe
    -Wno-unsafe
  if impl(ghc >= 8.10)
    ghc-options:
      -Wno-missing-safe-haskell-mode
      -Wno-prepositive-qualified-module

library
  import: component
  build-depends: base ^>= 4.10 || ^>= 4.11 || ^>= 4.12 || ^>= 4.13 || ^>= 4.14
  c-sources:
    cbits/termbox.c
    cbits/utf8.c
  exposed-modules:
    Termbox
    Termbox.Internal
  hs-source-dirs: src
  include-dirs: include
  other-modules:
    Termbox.Attr
    Termbox.Cell
    Termbox.Cells
    Termbox.Event
    Termbox.Key
    Termbox.Mouse

executable termbox-example-colors
  import: component
  if !flag(build-examples)
    buildable: False
  build-depends:
    base,
    termbox,
  ghc-options:
    -rtsopts
    -threaded
  hs-source-dirs: examples
  main-is: Colors.hs