Skip to content

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

Closed
@expipiplus1

Description

@expipiplus1
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions