Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language pragmas are inserted incorrectly at the top of file (before shebangs) #555

Closed
expipiplus1 opened this issue Oct 30, 2020 · 1 comment · Fixed by #1340
Closed
Labels
component: hls-pragmas-plugin component: plugins type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@expipiplus1
Copy link
Contributor

  • With the following file

    #! /usr/bin/env nix-shell
    #! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])"
    
    foo = id @()
  • Accept the suggestion to add the TypeApplications extension.

  • Observe that the language extension is incorrectly inserted above the shebangs

I'm pretty sure I saw {-# LANGUAGE TypeApplications #-} appear at the end of the #! nix-shell line at one point, but I can't reproduce that

PRs welcome!

@jneira jneira added the type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. label Oct 30, 2020
@jneira jneira linked a pull request Feb 24, 2021 that will close this issue
@mergify mergify bot closed this as completed in #1340 Feb 24, 2021
@expipiplus1
Copy link
Contributor Author

expipiplus1 commented Feb 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-pragmas-plugin component: plugins type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants