OS Manuals

/usr/lib/ghc-9.14.1/bin/hsc2hs

Glasgow Haskell Compiler

From ghc-9.14 9.14.1-r3 (enterprise-packages), captured 2026-11-08 by running hsc2hs --help (exit 0). permalink

Usage: hsc2hs [OPTIONS] INPUT.hsc [...]

  -o FILE          --output=FILE          name of main output file
  -t FILE          --template=FILE        template file
  -c PROG          --cc=PROG              C compiler to use
  -l PROG          --ld=PROG              linker to use
  -C FLAG          --cflag=FLAG           flag to pass to the C compiler
  -I DIR                                  passed to the C compiler
  -L FLAG          --lflag=FLAG           flag to pass to the linker
  -i FILE          --include=FILE         as if placed in the source
  -D NAME[=VALUE]  --define=NAME[=VALUE]  as if placed in the source
                   --no-compile           stop after writing *_hsc_make.c
  -x               --cross-compile        activate cross-compilation mode
                   --via-asm              use a crude asm parser to compute constants when cross compiling
                   --cross-safe           restrict .hsc directives to those supported by --cross-compile
  -k               --keep-files           do not remove temporary files
                   --column               annotate output with COLUMN pragmas (requires GHC 8.2)
  -v               --verbose              dump commands to stderr
  -?               --help                 display this help and exit
  -V               --version              output version information and exit
Options (14)
OptionDescriptionSource
-o FILE--output=FILE name of main output filehelp
-t FILE--template=FILE template filehelp
-c PROG--cc=PROG C compiler to usehelp
-l PROG--ld=PROG linker to usehelp
-C FLAG--cflag=FLAG flag to pass to the C compilerhelp
-I DIRpassed to the C compilerhelp
-L FLAG--lflag=FLAG flag to pass to the linkerhelp
-i FILE--include=FILE as if placed in the sourcehelp
-D NAME[=VALUE--define=NAME[=VALUE] as if placed in the sourcehelp
-x--cross-compile activate cross-compilation modehelp
-k--keep-files do not remove temporary fileshelp
-v--verbose dump commands to stderrhelp
-?--help display this help and exithelp
-V--version output version information and exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.