File: greencard-nhc98.1

package info (click to toggle)
nhc98 1.16-15
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 62,544 kB
  • ctags: 103,012
  • sloc: ansic: 831,077; haskell: 60,111; java: 4,116; makefile: 3,045; sh: 2,183; cpp: 212
file content (50 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download
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
.TH GREENCARD\-NHC98 1 "2004-11-13" NHC98 "GreenCard for nhc98"
.SH NAME
GreenCard-nhc98 \- Haskell C-Interface Preprocessor
.SH SYNOPSIS
.B greencard\-nhc98
[options] filename
.SH DESCRIPTION
.I greencard\-nhc98
is a preprocessor for Haskell which allows Haskell functions
to call C.  (Incidentally, nhc98 also has the ability to
call Haskell code from C using GreenCard to set up the
interface.)  Greencard is generally called automatically
by nhc98 when it is given a file with the extension ".gc".

GreenCard\-nhc98 will read from standard input if no filename
is given.

.SH OPTIONS
.TP
.B \-t, \-\-target TARGET
Generate code for a particular Haskell compiler.
.TP
.B \-\-version
Prints the version number, then exit successfully.
.TP
.B \-h, \-\-help
Print a usage message listing all available options.
.TP
.B \-v, \-\-verbose
Print more information while processing the input.
.TP
.B \-d, \-\-debug
Print even more information while processing the input.
.TP
.B \-i DIRS, \-PDIRS, \-\-include\-dir DIRS
Search the directories named in the colon (':')
separated list for imported files.  The directories will
be searched in a left-to-right order, after the
current directory.
.TP
.B \-g, \-\-fgc\-safe
Generates code that can use callbacks to Haskell.  This
makes the generated code slower.

.SH "SEE ALSO"
hmake(1), nhc98(1)

.SH AUTHORS
Based on text by Thomas Nordin, Simon Peyton Jones,
Alastair Reid, and Malcolm Wallace.