Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 501306f

Browse files
committed
Remove most pragma-related deprecation warnings.
Mainly by removing unneeded OPTIONS declarations (and replacing them with the appropriate LANGUAGE declarations where needed).
1 parent c5840ed commit 501306f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+96
-117
lines changed

Pugs/src/Main.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# OPTIONS_GHC -fglasgow-exts #-}
2-
31
{-|
42
The Main REPL loop.
53

Pugs/src/Pugs.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances -fffi #-}
1+
{-# LANGUAGE ForeignFunctionInterface, ImplicitParams, ScopedTypeVariables, PatternGuards #-}
22

33
{-|
44
Public API for the Pugs system.

Pugs/src/Pugs/AST.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances -fparr #-}
2-
{-# LANGUAGE GADTs #-}
1+
{-# OPTIONS_GHC -funbox-strict-fields #-}
2+
{-# LANGUAGE CPP, GADTs, ScopedTypeVariables, TypeSynonymInstances, MultiParamTypeClasses, DeriveDataTypeable, FlexibleContexts, PatternGuards #-}
33

44
{-|
55
Abstract syntax tree.

Pugs/src/Pugs/AST.hs-boot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{-# OPTIONS_GHC -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances #-}
1+
{-# OPTIONS_GHC -funbox-strict-fields #-}
2+
{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, TypeSynonymInstances #-}
23
module Pugs.AST where
34
import Pugs.Internals
45
import Pugs.Types

Pugs/src/Pugs/AST/Eval.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -fallow-overlapping-instances -funbox-strict-fields -fallow-undecidable-instances #-}
1+
{-# OPTIONS_GHC -funbox-strict-fields #-}
2+
{-# LANGUAGE ScopedTypeVariables, MultiParamTypeClasses, DeriveDataTypeable #-}
23

34
module Pugs.AST.Eval where
45
import Pugs.Internals

Pugs/src/Pugs/AST/Functions.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS_GHC -fglasgow-exts -fno-warn-orphans -fallow-overlapping-instances -fallow-undecidable-instances -fparr #-}
1+
{-# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses #-}
22
module Pugs.AST.Functions where
33
import Pugs.Internals
44
import Pugs.Types

Pugs/src/Pugs/AST/Internals.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -fallow-overlapping-instances -fallow-undecidable-instances -fparr #-}
2-
{-# LANGUAGE GADTs #-}
1+
{-# LANGUAGE CPP, GADTs, RankNTypes, TypeSynonymInstances, FlexibleInstances, DeriveDataTypeable, ScopedTypeVariables, PatternGuards #-}
32

43
module Pugs.AST.Internals (
54
Eval(..), -- uses Val, Env, SIO

Pugs/src/Pugs/AST/Internals.hs-boot

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -fallow-overlapping-instances -fallow-undecidable-instances #-}
2-
31
module Pugs.AST.Internals where
42
import Pugs.Types
53
import Pugs.Internals

Pugs/src/Pugs/AST/Internals/Instances.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -fallow-overlapping-instances -fallow-undecidable-instances -fparr #-}
2-
{-# LANGUAGE GADTs #-}
1+
{-# LANGUAGE GADTs, CPP, MagicHash, ScopedTypeVariables, PatternGuards, TypeSynonymInstances, FlexibleContexts, FlexibleInstances, UndecidableInstances, OverlappingInstances #-}
32

43

54

Pugs/src/Pugs/AST/Pad.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{-# OPTIONS_GHC -fglasgow-exts -fparr #-}
2-
{-# LANGUAGE GADTs #-}
1+
{-# LANGUAGE GADTs, ScopedTypeVariables, PatternGuards #-}
32
module Pugs.AST.Pad (
43
mkPad, unionPads, padKeys, filterPad, adjustPad, mergePadEntry,
54
mergeLexPads, readMPad, writeMPad, appendMPad, modifyMPad, newMPad

0 commit comments

Comments
 (0)