TerrorJack / ghc-alter

Utilities for building Haskell tooling with ghc.
9 stars 0 forks source link

Improve `RunPhase` #1

Closed TerrorJack closed 7 years ago

TerrorJack commented 7 years ago

Current problems:

TerrorJack commented 7 years ago

The problem remains unsolved. Still, managed to copy & paste some unexported functions from ghc to make code look nicer and avoid a gigantic runPhase. So closing for now.

TerrorJack commented 7 years ago

A thin wrapper WithIRs is available. There's a workaround to prevent the hooks being invoked twice.