/usr/share/doc/libghc-ncurses-doc/html/index.html is in libghc-ncurses-doc 0.2.11-3build1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ncurses-0.2.11: Modernised bindings to GNU ncurses</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">ncurses-0.2.11: Modernised bindings to GNU ncurses</p></div><div id="content"><div id="description"><h1>ncurses-0.2.11: Modernised bindings to GNU ncurses</h1><div class="doc"><p>GNU ncurses is a library for creating command-line application with
pseudo-graphical interfaces. This package is a nice, modern binding
to GNU ncurses.</p><p>The following example is a program that displays the message
"Hello world!" until the user hits Q:</p><pre>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
</pre></div></div><div id="module-list"><p class="caption">Modules</p><ul><li><span id="control.n.1" class="module collapser" onclick="toggleSection('n.1')">UI</span><ul id="section.n.1" class="show"><li><span class="module"><span id="control.n.1.1" class="collapser" onclick="toggleSection('n.1.1')"> </span><a href="UI-NCurses.html">UI.NCurses</a></span><ul id="section.n.1.1" class="show"><li><span class="module"><a href="UI-NCurses-Panel.html">UI.NCurses.Panel</a></span></li></ul></li></ul></li></ul></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|