Single-file Haskell scripts with Cabal directives #3572
chris-martin
started this conversation in
General
Replies: 2 comments 2 replies
-
Yes, that's correct.
Of course, that'd be great. In theory, it is pretty simple to support, we just need a way to find out how to compile this file. In an experiment, I found out that the following setup seems to be working, would you mind confirming? Add a hie.yaml like this: cradle:
cabal: and an empty Changes to the script part are not picked up, so you have to restart HLS in that case. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is this still not supported? Is there a tracking issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the Cabal documentation:
If I follow this example, I can indeed run this script at the command line. However, Haskell language server gives an error:
Do I correctly infer that HLS does not support this feature? Are there any plans to?
Beta Was this translation helpful? Give feedback.
All reactions