GHC 7.8.2 The Glorious Glasgow Haskell Compilation System User's Guide

User's guide for GHC 7.8.2 covering GHCi, compiling programs, command-line options, packages, profiling and language features.


GHC 7.8.2 The Glorious Glasgow Haskell Compilation System User's Guide - cover page
Brand
GHC
Category
Programming
Document type
User Manual
Language
English
Pages
335
File format
PDF
File size
1.4 MB
Published
10 November, 2026
Updated
10 November, 2026
MD5 checksum
14F89ED103EA2737BE20387947614C38

About this manual

This is the user's guide for The Glorious Glasgow Haskell Compilation System (GHC), version 7.8.2, written by The GHC Team. It explains how to obtain GHC, how to use the interactive environment GHCi, how to use runghc, and how to compile programs with GHC.

The guide also covers the options overview and flag reference, package management with the ghc-pkg command, profiling and code coverage with hp2ps and the hpc toolkit, advice on producing programs faster or smaller, and the language features and extensions supported by GHC 7.8.2. Release notes for versions 7.8.1 and 7.8.2, including known bugs, are included.

What's inside

  • Introduction to GHC
  • Using GHCi
  • Using runghc
  • Using GHC
  • Options overview
  • Packages
  • Profiling
  • Advice on: sooner, faster, smaller, thriftier
  • GHC Language Features
  • Flag reference

Specifications

Version7.8.2
Code generation backendsNative code generator (-fasm), LLVM code generator (-fllvm), C code generator (-fvia-C), unregisterised compilation
Package management commandghc-pkg
Heap profile toolhp2ps
Code coverage toolkithpc

Frequently asked questions

Which version of GHC does this user's guide cover?

It covers version 7.8.2 of The Glorious Glasgow Haskell Compilation System, and also includes release notes for version 7.8.1.

Who wrote the GHC user's guide?

The guide was written by The GHC Team, dated April 11, 2014.

Does the guide describe the interactive environment GHCi?

Yes, it has a chapter on using GHCi that covers loading source files, interactive evaluation at the prompt, the GHCi debugger, invoking GHCi and GHCi commands.

How can I report a bug in GHC?

The guide contains a section on reporting bugs in GHC within its introduction.

Download PDF (1.4 MB)