haskell / haskell/play-haskell
Feature Request: Display Intermediary Compiler Representations in Haskell Playground
- 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
Assessment
This issue has not been assessed yet.