Giter Site home page Giter Site logo

tarsbase / ghc-compiler-notes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from myuon/ghc-compiler-notes

0.0 0.0 0.0 1.88 MB

A collection of Notes on GHC

Home Page: https://ghc-compiler-notes.readthedocs.io

License: MIT License

Makefile 1.05% Haskell 98.81% C 0.14%

ghc-compiler-notes's Introduction

ghc-docs-book

Join the chat at https://gitter.im/ghc-compiler-notes/community CircleCI Documentation Status

Installation

Requirements:

  • GHC (== 8.6.x): for ghc-paths
  • GCC: for CPP
  • Sphinx: for docs building
git clone https://github.com/myuon/ghc-compiler-notes.git
cd ghc-compiler-notes
git clone --depth 1 https://gitlab.haskell.org/ghc/ghc.git output/ghc
make generate
make docs

Run make serve-docs and enjoy reading the notes from http://localhost:8000.

Development

Using stack.

$ stack run
$ stack test --flag ghc-compiler-notes:dev

Using cabal.

$ cabal new-run
$ cabal new-test --enable-tests -fdev

TODO

  • Read Cabal config

    • For MIN_VERSION_Cabal / etc. macros.
    • e.g. Failed to parse utils/haddock/haddock-test/src/Test/Haddock/Config.hs.
  • Sources using nested pragmas: https://ghc.haskell.org/trac/ghc/ticket/314

    • GHC 8.6.x has an issue for raw stream token with nested comments.
    • Fixed this issue in GHC 8.8.x.
    • e.g. Failed to parse libraries/ghc-prim/GHC/Classes.hs.
  • Notes not followed standard style

    • e.g. "A note about the stupid context" at compiler/basicTypes/DataCon.hs.
    • e.g. "Note [About the NameSorts]" at compiler/basicTypes/Name.hs.
    • e.g. "Note [Continuation BlockId]" at compiler/cmm/CmmNode.hs.
    • e.g. "Soundness checks" at compiler/ghci/RtClosureInspect.hs.
  • Collect note references

    • Collect See Note [...] and relate them to notes

ghc-compiler-notes's People

Contributors

mizunashi-mana avatar myuon avatar waddlaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.