gf: Grammatical Framework

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.



GF, Grammatical Framework, is a programming language for multilingual grammar applications

[Skip to ReadMe]


Versions3.1.6,,, 3.2, 3.2.9, 3.3, 3.3.3, 3.4, 3.5, 3.6, 3.7, 3.7.1, 3.8, 3.9, 3.10, 3.10
Change logNone available
Dependenciesarray, base (>=4.6 && <5), bytestring, cgi (>=3001.2.2.0), containers, directory, exceptions, filepath, gf, haskeline, httpd-shed (>=, json, lifted-base, mtl, network (>=2.3 && <2.7), network-uri (>=2.6), parallel (>=3), pretty, process, random, terminfo (>=0.4), time, time-compat, unix, utf8-string, Win32 [details]
MaintainerThomas Hallgren
CategoryNatural Language Processing, Compiler
Home page
Bug tracker
Source repositoryhead: git clone
Executablespgf-shell, gf
UploadedSun Dec 2 20:32:54 UTC 2018 by ThomasHallgren




Enable Ctrl+Break in the shell


Include --server mode


Get Network.URI from the network-uri package


Include functionality from the C run-time library (which must be installed already)


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for gf-3.10

[back to package description]

GF Logo

Grammatical Framework (GF)

Build Status

The Grammatical Framework is a grammar formalism based on type theory. It consists of:

The compiler reads GF grammars from user-provided files, and the generic grammar processor performs various tasks with the grammars:

GF particularly addresses four aspects of grammars:

Compilation and installation

The simplest way of installing GF is with the command:

cabal install

For more details, see the download page and developers manual.

About this repository

On 2018-07-25, the monolithic GF repository was split in two:

  1. gf-core — the GF compiler, shell and runtimes
  2. gf-rgl — the resource grammar library

The former repository is now archived and no longer updated. The split was performed using this script and the output of that script is here.