Skip to content
Closed
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
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ allow-newer: haskeline:base
-- https://github.com/TomMD/entropy/issues/75
constraints: entropy < 0.4.1.9

-- develop with -Werror on, for consistency with internal Meta CI.
program-options
ghc-options: -Werror -Wwarn=dodgy-imports

package fb-util
flags: +folly

Expand Down
1 change: 1 addition & 0 deletions glean.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ common fb-haskell
TypeFamilies
TypeSynonymInstances
NondecreasingIndentation
TypeOperators

ghc-options: -Wall -Wno-orphans -Wno-name-shadowing
if flag(opt)
Expand Down
1 change: 1 addition & 0 deletions glean/db/Glean/Query/Transform.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE CPP #-}
module Glean.Query.Transform
( transformationsFor
, transformResultsBack
Expand Down
2 changes: 1 addition & 1 deletion glean/db/Glean/Query/Typecheck/Unify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Glean.Query.Typecheck.Unify (
zonkVars,
) where

import Control.Monad.Except
import Control.Monad
import Control.Monad.State
import qualified Data.IntMap as IntMap
import qualified Data.Map as Map
Expand Down
2 changes: 0 additions & 2 deletions glean/glass/Glean/Glass/Path.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

module Glean.Glass.Path where

import qualified Data.Text as Text

import Glean.Glass.Base ( SymbolRepoPath(..), GleanPath(GleanPath) )
import qualified Glean.Glass.Types as Glass

Expand Down
2 changes: 1 addition & 1 deletion glean/glass/Glean/Glass/RepoMapping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Glean.Glass.RepoMapping
, allGleanRepos
, supportsCxxDeclarationSources
, mirrorConfig
, Mirror(Mirror)
, Mirror(..)
) where

import Data.Set (Set)
Expand Down
2 changes: 1 addition & 1 deletion glean/lang/clang/tests/Glean/Clang/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ driverWith deriveToo =
driver' = driverFromIndexer indexer'
baseIndexer = indexerWith deriveToo
isSrcFile file = takeExtension file `elem` [".c", ".cpp", ".m", ".mm"]
withCompileCommandsFor opts params f = do
withCompileCommandsFor _opts params f = do
srcFiles <- map (indexerRoot params </>) . filter isSrcFile <$>
listDirectory (indexerRoot params)
writeFile (indexerOutput params </> "compile_commands.json") $
Expand Down
8 changes: 6 additions & 2 deletions glean/test/regression/Glean/Regression/Snapshot/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ module Glean.Regression.Snapshot.Options
, optionsWith
) where

import Control.Monad (unless)
import qualified Options.Applicative as O
import System.Directory
import System.FilePath

#if !defined(OSS)
import Control.Monad (unless)
import System.Process (readProcess)
import Data.List (isPrefixOf, isSuffixOf)
#endif

data Config = Config
{ cfgProjectRoot :: FilePath
Expand Down Expand Up @@ -92,6 +95,7 @@ optionsWith other = O.info (O.helper <*> ((,) <$> parser <*> other)) O.fullDesc
cfgReplace = replace
}

#if !defined(OSS)
-- | Simple heuristics to get the path of the source files
-- from the buck-out path. Will take a path like
--
Expand Down Expand Up @@ -143,4 +147,4 @@ sourcePath path = do
if x == y
then go xs ys
else go (x:xs) ys

#endif
Loading