Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace -fno-warn with -Wno #568

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Stan/Core/Id.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# OPTIONS_GHC -Wno-redundant-constraints #-}

{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-}
Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Example.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{- HLINT ignore "Unused LANGUAGE pragma" -}
{-# OPTIONS_GHC -fno-warn-unused-top-binds #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}

{-# LANGUAGE NoUndecidableInstances #-}
{-# LANGUAGE PatternSynonyms #-}
Expand Down Expand Up @@ -37,7 +37,7 @@
pathToX x = "src/lib" </> x

getFirstIPromise :: [a] -> a
getFirstIPromise = P.head

Check warning on line 40 in src/Stan/Example.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.1

In the use of ‘head’

Check warning on line 40 in src/Stan/Example.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.8.1

In the use of ‘head’

Check warning on line 40 in src/Stan/Example.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.8.1

In the use of ‘head’

parseInt :: String -> Int
parseInt = P.read
Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Ghc/Compat902.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module Stan.Ghc.Compat902
#if __GLASGOW_HASKELL__ == 902 || __GLASGOW_HASKELL__ == 904
Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Ghc/Compat906.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module Stan.Ghc.Compat906
#if __GLASGOW_HASKELL__ == 906 || __GLASGOW_HASKELL__ == 908
Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Hie/Debug810.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE CPP #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

{- |
Copyright: (c) 2020 Kowainik
Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Hie/Debug900.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE CPP #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

{-# LANGUAGE FlexibleInstances #-}

Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Hie/Debug902.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE CPP #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

{-# LANGUAGE FlexibleInstances #-}

Expand Down
2 changes: 1 addition & 1 deletion src/Stan/Hie/Debug908.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE CPP #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -Wno-orphans #-}

{-# LANGUAGE FlexibleInstances #-}

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.AntiPattern where

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern/Stan0206.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
{-# LANGUAGE ExistentialQuantification #-}
module Target.AntiPattern.Stan0206 where

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern/Stan0206Extensions.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

{-# LANGUAGE StrictData #-}

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern/Stan0212.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.AntiPattern.Stan0212 where

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern/Stan0213.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

{- | Sum types pattern matching on @_@ -}

Expand Down
2 changes: 1 addition & 1 deletion target/Target/AntiPattern/Stan0214.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.AntiPattern.Stan0214 where

Expand Down
2 changes: 1 addition & 1 deletion target/Target/Infinite.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.Infinite where

Expand Down
2 changes: 1 addition & 1 deletion target/Target/Partial.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.Partial where

Expand All @@ -13,10 +13,10 @@


stanHead :: [a] -> a
stanHead = head

Check warning on line 16 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.1

In the use of ‘head’

Check warning on line 16 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.8.1

In the use of ‘head’

Check warning on line 16 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.8.1

In the use of ‘head’

stanTail :: [a] -> [a]
stanTail = tail

Check warning on line 19 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.1

In the use of ‘tail’

Check warning on line 19 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.8.1

In the use of ‘tail’

Check warning on line 19 in target/Target/Partial.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.8.1

In the use of ‘tail’

stanInit :: [a] -> [a]
stanInit = init
Expand Down
2 changes: 1 addition & 1 deletion target/Target/Style.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fno-warn-missing-export-lists #-}
{-# OPTIONS_GHC -Wno-missing-export-lists #-}

module Target.Style where

Expand Down
Loading