Skip to content

Commit 26c5c12

Browse files
Merge pull request #360 from haskellfoundation/fend
Add fend for EOL newline linting to CI
2 parents 447cfde + 4ff15f7 commit 26c5c12

File tree

38 files changed

+64
-37
lines changed

38 files changed

+64
-37
lines changed

.fend.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
skip:
2+
file:
3+
- message-index/CNAME
4+
- message-index/css/highlight.css
5+
- message-index/js/highlight.min.js
6+
- message-index/js/tablefilter.js
7+
8+
extension:
9+
- .hi
10+
- .o
11+
- .png
12+
13+
dir:
14+
- message-index/dist-newstyle
15+
- message-index/_cache
16+
- message-index/_site

.github/workflows/fend.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: fend
2+
3+
on: [push]
4+
5+
jobs:
6+
fend:
7+
name: Fend
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- uses: njgibbon/fend@main
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{-# OPTIONS_GHC -flate-specialise #-}
22

3-
module UnknownOptionsFlag where
3+
module UnknownOptionsFlag where
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{-# OPTIONS_GHC -flat-specialise #-}
22

3-
module UnknownOptionsFlag where
3+
module UnknownOptionsFlag where

message-index/messages/GHC-06446/example1/after/DoNotationInPattern.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module DoNotationInPattern where
33
f :: Monad m => m Int -> m Bool
44
f m = do
55
v <- m
6-
return $ v == 2
6+
return $ v == 2

message-index/messages/GHC-09009/example1/after/IllegalRole.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
module IllegalRole where
44

55
type role A phantom
6-
data A a = A
6+
data A a = A

message-index/messages/GHC-09009/example1/before/IllegalRole.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
module IllegalRole where
44

55
type role A pantom
6-
data A a = A
6+
data A a = A
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Example where
22

33
example = foo
4-
where foo = ' '
4+
where foo = ' '
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Example where
22

33
example = foo
4-
where foo = ''
4+
where foo = ''

message-index/messages/GHC-20125/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ flag: -Wmissing-fields
77
---
88
When constructing a record using labeled fields, all fields which are not explicitly stated are implicitly initialized with a bottom term. This means that accessing the field results in a panic.
99

10-
If a *strict* field is missing, the error [GHC-95909](/messages/GHC-95909/index.html) is emitted instead.
10+
If a *strict* field is missing, the error [GHC-95909](/messages/GHC-95909/index.html) is emitted instead.

0 commit comments

Comments
 (0)