-
-
Notifications
You must be signed in to change notification settings - Fork 392
Insert pragmas after shebang or to existing pragma list #1731
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
Merged
mergify
merged 13 commits into
haskell:master
from
OliverMadine:pragma-insert-location-option
Apr 22, 2021
Merged
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8cebdd5
added option to always insert pragmas at top of file
OliverMadine c08ee64
Revert "added option to always insert pragmas at top of file"
OliverMadine 5a8ff8b
Pragmas inserted before comments (#1726)
OliverMadine 2b680c2
Code style
OliverMadine 66caa43
Code style
OliverMadine 89a094c
Insert pragamas to existing pragma list
OliverMadine 6157b81
added cpp macro to pragma test for ghc < 810
OliverMadine f268a90
Merge branch 'master' into pragma-insert-location-option
jneira f68f6b7
Refactor: using file contents to find pragma insertion position
OliverMadine 93abdef
Merge branch 'pragma-insert-location-option' of github.com:OliverMadi…
OliverMadine 2903be8
Update getParsedModule action description
OliverMadine ab7f7b6
Code style
OliverMadine 9db3467
Merge branch 'master' into pragma-insert-location-option
berberman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])" | ||
-- | Doc Comment | ||
{- Block -} | ||
|
||
module BeforeDocComment where | ||
|
||
data Record = Record | ||
{ a :: Int, | ||
b :: Double, | ||
c :: String | ||
} | ||
|
||
f Record{a, b} = a |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.