GTK2HSTYPEGEN(1)

πŸ’– gtk2hsTypeGen β€” the manual page, but make it make sense πŸ’–

okay so bestie, this is gtk2hsTypeGen(1) from the General Commands Manual, and I'm gonna walk you through it like we're texting at 2am. it's lowkey niche but it's important, iykyk ✨


🌸 NAME 🌸

gtk2hsTypeGen β€” a whole program whose entire job is generating Gtk's object hierarchy in Haskell. that's it. that's the gig. she's a builder πŸ’…


✨ SYNOPSIS ✨

gtk2hsTypeGen [--tag=tag ...]  [--lib=lib] [--prefix=prefix]
[--modname=modName] [--import=[*]importName ...]
[--forward=[*]fwdName ...]  [--destructor=destrName]
[--hierarchy=hierName]

πŸ¦‹ DESCRIPTION πŸ¦‹

so this page is the short-and-sweet version of what gtk2hsTypeGen does. it's a helper program, and no cap you literally cannot build the Gtk2Hs suite of libraries without it. she's not the main character, she's the main character's right hand πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

these programs follow the usual GNU command line syntax, and the long options start with two dashes (-). below is a little summary of the options. for the full lore, go read the other documentation, bestie πŸ“š

gtk2hsTypeGen accepts the following options:

  • --tag=tag β€” generates entries that have the tag tag. and if you've got types with no tag at all? just pass default, she's got you 🏷️
  • --lib=lib β€” sets the lib to use in the c2hs {#context #} declaration. the default is gtk πŸ’œ
  • --prefix=prefix β€” sets the prefix to use in the c2hs {#context #} declaration. the default is gtk ✨
  • --modname=modName β€” specify the module name, but only when it doesn't match the file name. like, say, a hierarchical module name πŸͺ†
  • --import="[*]"importName β€” additionally imports this module without re-exporting it. throw an asterix as a prefix if the import should be a .chs import statement as well as exported from the generated module πŸ‘€
  • --forward="[*]"fwdName β€” specifies a number of modules that are imported. use an asterix as a prefix if the import should be a .chs import statement, as well as exported from the generated module πŸš€
  • --destructor=destrName β€” specifies a non-standard C function pointer that gets called to destroy the objects. bye bye object πŸ’€
  • --hierarchy=hierName β€” the name of the file containing the hierarchy list. defaults to the built-in list πŸ“œ

πŸ™ˆ BUGS πŸ™ˆ

please please please report bugs and feature requests over in the Gtk2Hs trac:

http://hackage.haskell.org/trac/gtk2hs/

or slide into the Gtk2Hs mailing list: gtk2hs-devel@lists.sourceforge.net πŸ“¬


πŸ‘‘ AUTHOR πŸ‘‘

this page was addapted from the gtk2hsHookGenerator(1) manpage, by Marco Túlio Gontijo e Silva <marcot@debian.org> for the Debian GNU/Linux system (but may be used by others, she's generous like that) 🫢


okay and that's the whole thing!! this was GTK2HSTYPEGEN(1) from the General Commands Manual, and yes we're literally closing out the exact same way the page does. slay, go generate some hierarchy bestie πŸŒˆπŸ’–