Skip to content

Dump TemplateHaskell splices #3986

Open
@dcastro

Description

@dcastro

Your environment

Which OS do you use?
Ubuntu 20.04.6

Which version of GHC do you use and how did you install it?
GHC 9.4.8 via ghcup

How is your project built (alternative: link to the project)?
https://github.com/serokell/tztime

Which LSP client (editor/plugin) do you use?
VSCode + vscode-haskell

Which version of HLS do you use and how did you install it?
HLS 2.5.0.0 via ghcup

Have you configured HLS in any way (especially: a hie.yaml file)?
Just the standard gen-hie --stack > hie.yaml

What's wrong?

I remember being able to add {-# OPTIONS_GHC -ddump-splices #-} to a module and vscode would report a warning with the contents of all TH splices.
I tried this again this week, using the latest version of HLS, and no warnings are reported by vscode (though building the project with stack/cabal does print the splices as per usual).

Did something change recently that made this no longer possible?

Debug information

EDIT: To reproduce the old behavior, see this comment: #3986 (comment)

To reproduce the problem, simply add {-# OPTIONS_GHC -ddump-splices #-} to a module and write some TH splice, e.g.:

exp :: Integer
exp = $([e| 1 |])

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: supportUser support tickets, questions, help with setup etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions