... | ... | @@ -27,4 +27,4 @@ The ideal solution would be to **extract the information about the source code** |
|
|
|
|
|
[ Compiler hooks](Ghc/Hooks) could be used, but they cannot be controlled by simply configuring GHC at runtime. In order to install new hooks, the tool developer would have to create an alternative compiler executable and users would have to replace their GHC executable with the altered one. This means that it is unlikely that multiple tools could be used together.
|
|
|
|
|
|
[ Frontend plugins](https://downloads.haskell.org/~ghc/master/users-guide/extending_ghc.html#frontend-plugins) are not applicable, because their usage changes the major mode of the compiler. So if the tool developer wants to go on with the compilation procedure, he must replicate what GHC would do if the frontend plugin was not used. Furthermore, it can't be inserted into a normal build environment, since using the --frontend flag clashes with other mode flags like --make or --interactive. If the build environment already uses these flags, the frontend flag cannot be simply added. Some walkarounds can be used (like creating a wrapper for GHC), but they suffer from the same problems as using compiler hooks. Also check [ https://ghc.haskell.org/trac/ghc/ticket/14018](https://ghc.haskell.org/trac/ghc/ticket/14018) |
|
|
\ No newline at end of file |
|
|
[ Frontend plugins](https://downloads.haskell.org/~ghc/master/users-guide/extending_ghc.html#frontend-plugins) are not applicable, because their usage changes the major mode of the compiler. So if the tool developer wants to go on with the compilation procedure, he must replicate what GHC would do if the frontend plugin was not used. Furthermore, it can't be inserted into a normal build environment, since using the --frontend flag clashes with other mode flags like --make or --interactive. If the build environment already uses these flags, the frontend flag cannot be simply added. Some walkarounds can be used (like creating a wrapper for GHC), but they suffer from the same problems as using compiler hooks. Also check [ https://gitlab.haskell.org/ghc/ghc/issues/14018](https://gitlab.haskell.org/ghc/ghc/issues/14018) |
|
|
\ No newline at end of file |