Skip to content

Commit c520632

Browse files
committed
cabal: default to ScopeTypeVariables
It is used in ~50% of modules & looks a standard feature at this point.
1 parent 31c9e99 commit c520632

31 files changed

+4
-30
lines changed

hnix.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ library
477477
, DeriveLift
478478
, FlexibleContexts
479479
, FlexibleInstances
480+
, ScopedTypeVariables
480481
, StandaloneDeriving
481482
, TypeApplications
482483
, TypeSynonymInstances
@@ -544,6 +545,7 @@ executable hnix
544545
, DeriveLift
545546
, FlexibleContexts
546547
, FlexibleInstances
548+
, ScopedTypeVariables
547549
, StandaloneDeriving
548550
, TypeApplications
549551
, TypeSynonymInstances
@@ -623,6 +625,7 @@ test-suite hnix-tests
623625
, DeriveLift
624626
, FlexibleContexts
625627
, FlexibleInstances
628+
, ScopedTypeVariables
626629
, StandaloneDeriving
627630
, TypeApplications
628631
, TypeSynonymInstances
@@ -676,6 +679,7 @@ benchmark hnix-benchmarks
676679
, DeriveLift
677680
, FlexibleContexts
678681
, FlexibleInstances
682+
, ScopedTypeVariables
679683
, StandaloneDeriving
680684
, TypeApplications
681685
, TypeSynonymInstances

main/Main.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# language MultiWayIf #-}
2-
{-# language ScopedTypeVariables #-}
32
{-# language TypeFamilies #-}
43
{-# language RecordWildCards #-}
54

main/Repl.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
-}
99

1010
{-# language MultiWayIf #-}
11-
{-# language ScopedTypeVariables #-}
1211

1312
module Repl
1413
( main

src/Nix.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# language ScopedTypeVariables #-}
21

32
module Nix
43
( module Nix.Cache

src/Nix/Builtins.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
{-# language MultiWayIf #-}
88
{-# language PartialTypeSignatures #-}
99
{-# language QuasiQuotes #-}
10-
{-# language ScopedTypeVariables #-}
1110
{-# language TemplateHaskell #-}
1211
{-# language UndecidableInstances #-}
1312
{-# language PackageImports #-} -- 2021-07-05: Due to hashing Haskell IT system situation, in HNix we currently ended-up with 2 hash package dependencies @{hashing, cryptonite}@

src/Nix/Cited/Basic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# language GeneralizedNewtypeDeriving #-}
2-
{-# language ScopedTypeVariables #-}
32
{-# language UndecidableInstances #-}
43
{-# language PatternSynonyms #-}
54

src/Nix/Convert.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# language AllowAmbiguousTypes #-}
22
{-# language ConstraintKinds #-}
33
{-# language IncoherentInstances #-}
4-
{-# language ScopedTypeVariables #-}
54
{-# language TypeFamilies #-}
65
{-# language UndecidableInstances #-}
76

src/Nix/Effects/Basic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# language CPP #-}
2-
{-# language ScopedTypeVariables #-}
32

43
module Nix.Effects.Basic where
54

src/Nix/Effects/Derivation.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# language DataKinds #-}
22
{-# language NamedFieldPuns #-}
33
{-# language RecordWildCards #-}
4-
{-# language ScopedTypeVariables #-}
54
{-# language PackageImports #-} -- 2021-07-05: Due to hashing Haskell IT system situation, in HNix we currently ended-up with 2 hash package dependencies @{hashing, cryptonite}@
65

76
module Nix.Effects.Derivation ( defaultDerivationStrict ) where

src/Nix/Eval.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# language AllowAmbiguousTypes #-}
22
{-# language ConstraintKinds #-}
33
{-# language RankNTypes #-}
4-
{-# language ScopedTypeVariables #-}
54

65

76

0 commit comments

Comments
 (0)