Skip to content

Commit

Permalink
Don't set -fplugin in ghc-options
Browse files Browse the repository at this point in the history
This workarounds haskell/cabal#9375
  • Loading branch information
facundominguez committed Mar 7, 2024
1 parent 6aeb737 commit b396172
Show file tree
Hide file tree
Showing 56 changed files with 54 additions and 6 deletions.
2 changes: 0 additions & 2 deletions liquid-parallel/liquid-parallel.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ library
, liquidhaskell >= 0.9.2.8
default-language: Haskell2010
default-extensions: PackageImports
if impl(ghc >= 8.10)
ghc-options: -fplugin=LiquidHaskell
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Control.Parallel.Strategies_LHAssumptions where

Expand Down
2 changes: 0 additions & 2 deletions liquid-prelude/liquid-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ library
, containers >= 0.6.4.1 && < 0.7
, liquidhaskell >= 0.9.2.8
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -fplugin=LiquidHaskell
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/Bag.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
module Language.Haskell.Liquid.Bag where

import qualified Data.Map as M
Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/Equational.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
module Language.Haskell.Liquid.Equational where

-------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/Foreign.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# LANGUAGE MagicHash #-}

Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/List.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
module Language.Haskell.Liquid.List (transpose) where

{-@ lazy transpose @-}
Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/Prelude.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
{-# LANGUAGE MagicHash #-}

module Language.Haskell.Liquid.Prelude where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/RTick.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}

--
-- Liquidate your assets: reasoning about resource usage in Liquid Haskell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}

--
-- Liquidate your assets: reasoning about resource usage in Liquid Haskell.
Expand Down
1 change: 1 addition & 0 deletions liquid-prelude/src/Language/Haskell/Liquid/String.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
-- Support for Strings for SMT

{-# LANGUAGE OverloadedStrings #-}
Expand Down
2 changes: 1 addition & 1 deletion liquid-vector/liquid-vector.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ library
default-language: Haskell2010
default-extensions: PackageImports
if impl(ghc >= 8.10)
ghc-options: -fplugin=LiquidHaskell -fplugin-opt=LiquidHaskell:--no-positivity-check
ghc-options: -fplugin-opt=LiquidHaskell:--no-positivity-check

1 change: 1 addition & 0 deletions liquid-vector/src/Data/Vector_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskell #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.Vector_LHAssumptions where

Expand Down
2 changes: 1 addition & 1 deletion liquidhaskell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ library
ghc-bignum,
ghc-prim
default-language: Haskell98
ghc-options: -Wall -fplugin=LiquidHaskellBoot
ghc-options: -Wall

if flag(devel)
ghc-options: -Werror
1 change: 1 addition & 0 deletions src/Data/Bits_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Data.Bits_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString/Char8_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString.Char8_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString/Lazy/Char8_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString.Lazy.Char8_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString/Lazy_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString.Lazy_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString/Short_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString.Short_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString/Unsafe_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString.Unsafe_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/ByteString_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.ByteString_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/Either_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Data.Either_LHAssumptions where

import GHC.Types_LHAssumptions()
Expand Down
1 change: 1 addition & 0 deletions src/Data/Foldable_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Data.Foldable_LHAssumptions where

import GHC.Types_LHAssumptions()
Expand Down
1 change: 1 addition & 0 deletions src/Data/Int_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Data.Int_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/Data/Maybe_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.Maybe_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/Set_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.Set_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/String_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.String_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/Tuple_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Data.Tuple_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Data/Word_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Data.Word_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/Foreign/C/String_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Foreign.C.String_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Foreign/C/Types_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Foreign.C.Types_LHAssumptions where

import GHC.Int_LHAssumptions()
Expand Down
1 change: 1 addition & 0 deletions src/Foreign/Concurrent_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Foreign.Concurrent_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Foreign/ForeignPtr_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Foreign.ForeignPtr_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Foreign/Marshal/Alloc_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Foreign.Marshal.Alloc_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Foreign/Ptr_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Foreign.Ptr_LHAssumptions where


Expand Down
1 change: 1 addition & 0 deletions src/Foreign/Storable_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Foreign.Storable_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Base_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.Base_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/CString_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -Wno-missing-signatures #-}
module GHC.CString_LHAssumptions() where
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Classes_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module GHC.Classes_LHAssumptions where

import GHC.Classes()
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Exts_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.Exts_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Float_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module GHC.Float_LHAssumptions(Floating(..)) where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/GHC/ForeignPtr_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.ForeignPtr_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/IO/Handle_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.IO.Handle_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Int_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.Int_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/List_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.List_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Maybe_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module GHC.Maybe_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Num/Integer_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.Num.Integer_LHAssumptions() where
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Num_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module GHC.Num_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Ptr_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module GHC.Ptr_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Real_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
-- Reexports are necessary for LH to expose specs of type classes
module GHC.Real_LHAssumptions(Integral(..), Fractional(..)) where

Expand Down
1 change: 1 addition & 0 deletions src/GHC/Types_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -Wno-missing-signatures #-}
module GHC.Types_LHAssumptions() where
Expand Down
1 change: 1 addition & 0 deletions src/GHC/Word_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module GHC.Word_LHAssumptions where

{-@
Expand Down
1 change: 1 addition & 0 deletions src/Liquid/Prelude/Real_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Liquid.Prelude.Real_LHAssumptions where

import GHC.Num()
Expand Down
1 change: 1 addition & 0 deletions src/Liquid/Prelude/Totality_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Liquid.Prelude.Totality_LHAssumptions where

Expand Down
1 change: 1 addition & 0 deletions src/Prelude_LHAssumptions.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -fplugin=LiquidHaskellBoot #-}
module Prelude_LHAssumptions where

import GHC.Base_LHAssumptions()
Expand Down

0 comments on commit b396172

Please sign in to comment.