Skip to content

Commit

Permalink
Make options backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Oct 30, 2023
1 parent a84d38f commit d1fc817
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Documentation/SBV/Examples/Crypto/AES.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@
-- are supported.
-----------------------------------------------------------------------------

{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE TypeApplications #-}

#if MIN_VERSION_base(4,19,0)
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}
#else
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}
#endif

module Documentation.SBV.Examples.Crypto.AES where

Expand Down
15 changes: 10 additions & 5 deletions SBVTestSuite/TestSuite/Basics/ArithNoSolver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
-- the constant folding based arithmetic implementation in SBV
-----------------------------------------------------------------------------

{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TupleSections #-}

{-# OPTIONS_GHC -Wall -Werror -Wno-x-partial #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TupleSections #-}

#if MIN_VERSION_base(4,19,0)
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}
#else
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}
#endif

module TestSuite.Basics.ArithNoSolver(tests) where

Expand Down
7 changes: 6 additions & 1 deletion SBVTestSuite/TestSuite/Basics/ArithSolver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@
-- constant folding.
-----------------------------------------------------------------------------

{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}

{-# OPTIONS_GHC -Wall -Werror -Wno-x-partial #-}
#if MIN_VERSION_base(4,19,0)
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}
#else
{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}
#endif

module TestSuite.Basics.ArithSolver(tests) where

Expand Down

0 comments on commit d1fc817

Please sign in to comment.