haskell / haskell/play-haskell

Feature Request: Display Intermediary Compiler Representations in Haskell Playground

Open
#37 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
160
Forks
14
PR merge metrics
No merged PRs in 30d

Description

**Feature Description:**

Add the ability to display intermediary compiler representations within the Haskell Playground. This should include stages like parsing, renaming, type-checking, Core representation, STG representation, Cmm and LLVM representation, among others.

**Rationale:**

This feature will enhance user learning and debugging experiences by providing insights into how Haskell code is processed, optimized, and transformed into an executable program.

**Use Case:**

Users debugging or trying to understand complex code can utilize these representations to eventually understand the origin of unexpected behaviors. Additionally, it will act as a useful learning tool for those studying compiler design or Haskell internals.

**References:**

[GHC compiler flags for dumping to stdout various intermediary representations documentation](https://mpickering.github.io/ghc-docs/build-html/users_guide/debugging.html)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.