File tree 13 files changed +8
-22
lines changed 13 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 31
31
- ignore : {name: "Use ."}
32
32
- ignore : {name: "Use list comprehension"}
33
33
- ignore : {name: "Use fromMaybe"}
34
+ - ignore : {name: "Avoid lambda using `infix`"}
35
+ - ignore : {name: "Use tuple-section"}
36
+ - ignore : {name: "Use <$>"}
37
+ - ignore : {name: "Redundant <$>"}
38
+ - ignore : {name: "Replace case with maybe"}
39
+ - ignore : {name: "Replace case with fromMaybe"}
34
40
35
41
36
42
# Specify additional command line arguments
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE ApplicativeDo #-}
2
2
{-# LANGUAGE ConstraintKinds #-}
3
- {-# LANGUAGE DefaultSignatures #-}
4
- {-# LANGUAGE DeriveFunctor #-}
5
3
{-# LANGUAGE FlexibleContexts #-}
6
4
{-# LANGUAGE FlexibleInstances #-}
7
- {-# LANGUAGE GeneralizedNewtypeDeriving #-}
8
5
{-# LANGUAGE MultiParamTypeClasses #-}
9
- {-# LANGUAGE MultiWayIf #-}
10
6
{-# LANGUAGE OverloadedStrings #-}
11
7
{-# LANGUAGE PolyKinds #-}
12
8
{-# LANGUAGE RankNTypes #-}
13
9
{-# LANGUAGE RecordWildCards #-}
14
10
{-# LANGUAGE ScopedTypeVariables #-}
15
- {-# LANGUAGE TupleSections #-}
16
- {-# LANGUAGE TypeApplications #-}
17
11
{-# LANGUAGE TypeFamilies #-}
18
- {-# LANGUAGE TypeOperators #-}
19
12
{-# LANGUAGE UndecidableInstances #-}
20
- {-# LANGUAGE ViewPatterns #-}
21
13
22
14
{-| Please read the "Dhall.Tutorial" module, which contains a tutorial explaining
23
15
how to use the language, the compiler, and this library
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE AllowAmbiguousTypes #-}
2
2
{-# LANGUAGE DataKinds #-}
3
3
{-# LANGUAGE FlexibleContexts #-}
4
- {-# LANGUAGE KindSignatures #-}
5
4
{-# LANGUAGE PolyKinds #-}
6
5
{-# LANGUAGE ScopedTypeVariables #-}
7
6
{-# LANGUAGE TypeApplications #-}
Original file line number Diff line number Diff line change 10
10
{-# LANGUAGE UndecidableInstances #-}
11
11
{-# LANGUAGE ViewPatterns #-}
12
12
13
- {-# OPTIONS_GHC -O #-}
14
-
15
13
{-| Eval-apply environment machine with conversion checking and quoting to
16
14
normal forms. Fairly similar to GHCI's STG machine algorithmically, but much
17
15
simpler, with no known call optimization or environment trimming.
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE LambdaCase #-}
2
- {-# LANGUAGE NamedFieldPuns #-}
3
1
{-# LANGUAGE OverloadedStrings #-}
4
2
{-# LANGUAGE RecordWildCards #-}
5
3
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE NamedFieldPuns #-}
2
1
{-# LANGUAGE OverloadedStrings #-}
3
2
{-# LANGUAGE RecordWildCards #-}
4
3
{-# LANGUAGE ViewPatterns #-}
Original file line number Diff line number Diff line change 9
9
{-# LANGUAGE RecordWildCards #-}
10
10
{-# LANGUAGE ScopedTypeVariables #-}
11
11
{-# LANGUAGE TypeApplications #-}
12
- {-# LANGUAGE ViewPatterns #-}
13
12
14
13
{-# OPTIONS_GHC -Wall #-}
15
14
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ instance Pretty Chained where
50
50
pretty (Chained import_) = pretty import_
51
51
52
52
-- | An import that has been fully interpeted
53
- data ImportSemantics = ImportSemantics
53
+ newtype ImportSemantics = ImportSemantics
54
54
{ importSemantics :: Expr Void Void
55
55
-- ^ The fully resolved import, typechecked and beta-normal.
56
56
}
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ parseMode =
361
361
where
362
362
-- Parse explicit stdin in the input filepaths
363
363
parseStdin inputs
364
- | any ( == InputFile " -" ) inputs = StandardInput : filter (/= InputFile " -" ) inputs
364
+ | InputFile " -" `elem` inputs = StandardInput : filter (/= InputFile " -" ) inputs
365
365
| otherwise = inputs
366
366
367
367
f = fromMaybe (pure StandardInput ) . nonEmpty . parseStdin . fmap InputFile
Original file line number Diff line number Diff line change 7
7
{-# LANGUAGE FlexibleInstances #-}
8
8
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
9
9
{-# LANGUAGE MultiParamTypeClasses #-}
10
- {-# LANGUAGE MultiWayIf #-}
11
10
{-# LANGUAGE OverloadedStrings #-}
12
11
{-# LANGUAGE PolyKinds #-}
13
12
{-# LANGUAGE RankNTypes #-}
14
13
{-# LANGUAGE RecordWildCards #-}
15
14
{-# LANGUAGE ScopedTypeVariables #-}
16
15
{-# LANGUAGE StandaloneDeriving #-}
17
- {-# LANGUAGE TupleSections #-}
18
16
{-# LANGUAGE TypeApplications #-}
19
17
{-# LANGUAGE TypeFamilies #-}
20
18
{-# LANGUAGE TypeOperators #-}
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE DeriveAnyClass #-}
2
- {-# LANGUAGE OverloadedLists #-}
3
2
{-# LANGUAGE OverloadedStrings #-}
4
3
{-# LANGUAGE RecordWildCards #-}
5
4
Original file line number Diff line number Diff line change 4
4
{-# LANGUAGE DeriveLift #-}
5
5
{-# LANGUAGE DeriveTraversable #-}
6
6
{-# LANGUAGE DerivingStrategies #-}
7
- {-# LANGUAGE GeneralizedNewtypeDeriving #-}
8
7
{-# LANGUAGE LambdaCase #-}
9
8
{-# LANGUAGE OverloadedLists #-}
10
9
{-# LANGUAGE OverloadedStrings #-}
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE NamedFieldPuns #-}
2
2
{-# LANGUAGE OverloadedStrings #-}
3
3
{-# LANGUAGE RecordWildCards #-}
4
- {-# LANGUAGE TypeApplications #-}
5
4
6
5
-- | Shared utility functions
7
6
You can’t perform that action at this time.
0 commit comments