/var/lib/ghc/package.conf.d/ncurses-0.2.15.conf is in libghc-ncurses-dev 0.2.15-3build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | name: ncurses
version: 0.2.15
id: ncurses-0.2.15-Hxw0oGXs8ZnJWVbAfXt8vJ
key: ncurses-0.2.15-Hxw0oGXs8ZnJWVbAfXt8vJ
license: GPL-3
maintainer: John Millikin <jmillikin@gmail.com>
stability: experimental
homepage: https://john-millikin.com/software/haskell-ncurses/
synopsis: Modernised bindings to GNU ncurses
description:
GNU ncurses is a library for creating command-line application with
pseudo-graphical interfaces. This package is a nice, modern binding
to GNU ncurses.
.
The following example is a program that displays the message
\"Hello world!\" until the user hits Q:
.
@
import UI.NCurses
.
main :: IO ()
main = runCurses $ do
  setEcho False
  w <- defaultWindow
  updateWindow w $ do
  moveCursor 1 10
  drawString \"Hello world!\"
  moveCursor 3 10
  drawString \"(press q to quit)\"
  moveCursor 0 0
  render
  waitFor w (\\ev -> ev == EventCharacter \'q\' || ev == EventCharacter \'Q\')
.
waitFor :: Window -> (Event -> Bool) -> Curses ()
waitFor w p = loop where
  loop = do
  ev <- getEvent w Nothing
  case ev of
  Nothing -> loop
  Just ev' -> if p ev' then return () else loop
@
category: User Interfaces, Foreign
author: John Millikin <jmillikin@gmail.com>
exposed: True
exposed-modules:
UI.NCurses UI.NCurses.Panel
hidden-modules: UI.NCurses.Enums UI.NCurses.Compat UI.NCurses.Types
abi: 41123bd64474b6c5ae75a92ddd559caf
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/ncurses-0.2.15-Hxw0oGXs8ZnJWVbAfXt8vJ
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2/ncurses-0.2.15-Hxw0oGXs8ZnJWVbAfXt8vJ
dynamic-library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.2
data-dir: /usr/share/ncurses
hs-libraries: HSncurses-0.2.15-Hxw0oGXs8ZnJWVbAfXt8vJ
extra-libraries:
panelw ncursesw pthread
depends:
base-4.9.1.0 containers-0.5.7.1 text-1.2.2.2-9UQZjEJZQFSGMffj1Z5g00
transformers-0.5.2.0
haddock-interfaces: /usr/lib/ghc-doc/haddock/ncurses-0.2.15/ncurses.haddock
haddock-html: /usr/share/doc/libghc-ncurses-doc/html/
|