packages feed

termbox-0.2.0.1: termbox.cabal

cabal-version: 2.4

name: termbox
version: 0.2.0.1
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/nsf/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

library
  build-depends:
    array,
    base ^>= 4.9 || ^>= 4.10 || ^>= 4.11 || ^>= 4.12 || ^>= 4.13 || ^>= 4.14
  build-tool-depends:
    c2hs:c2hs
  c-sources:
    cbits/termbox.c
    cbits/utf8.c
  default-language:
    Haskell2010
  exposed-modules:
    Termbox
  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
  hs-source-dirs:
    src
  include-dirs:
    include
  other-modules:
    Termbox.Internal

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