Skip to content

Commit 97afb65

Browse files
RaoulHCraehik
authored andcommitted
Fix pedantic warnings and add to CI
1 parent 19e1ffa commit 97afb65

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: stack --no-terminal test --only-dependencies
3636

3737
- name: Build and run tests
38-
run: stack --no-terminal haddock --test --no-haddock-deps
38+
run: stack --no-terminal haddock --test --no-haddock-deps --pedantic
3939

4040
- name: Install (to place executable at a known location)
4141
run: stack --no-terminal install

src/Language/Fortran/Analysis/SemanticTypes.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ instance Out SemType
4949
-- TypeSpec?
5050
instance Pretty SemType where
5151
pprint' v = \case
52-
TInteger k -> "integer"
53-
TReal k -> "real"
54-
TComplex k -> "complex"
55-
TLogical k -> "logical"
56-
TByte k -> "byte"
57-
TCharacter len k -> "character"
58-
TArray st dims -> pprint' v st <+> parens "(A)"
52+
TInteger _ -> "integer"
53+
TReal _ -> "real"
54+
TComplex _ -> "complex"
55+
TLogical _ -> "logical"
56+
TByte _ -> "byte"
57+
TCharacter _ _ -> "character"
58+
TArray st _ -> pprint' v st <+> parens "(A)"
5959
TCustom str -> pprint' v (TypeCustom str)
6060

6161
-- | The declared dimensions of a staticically typed array variable

test/Language/Fortran/Parser/UtilsSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ spec =
7777
jExp a b c = Just (Exponent a b c)
7878
expE = ExpLetterE
7979
expD = ExpLetterD
80-
fails test = return test `shouldThrow` anyException
80+
-- fails test = return test `shouldThrow` anyException

0 commit comments

Comments
 (0)