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

Commit 2b2bf07

Browse files
committed
Cleanup: fix build warnings
1 parent 17acefb commit 2b2bf07

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

haddock-api/src/Haddock/Backends/Hyperlinker.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Data.Maybe
1818
import System.Directory
1919
import System.FilePath
2020

21-
import GHC.Iface.Ext.Types ( HieFile(..), HieASTs(..), HieAST(..), NodeInfo(..), SourcedNodeInfo(..) )
21+
import GHC.Iface.Ext.Types ( HieFile(..), HieASTs(..), HieAST(..), SourcedNodeInfo(..) )
2222
import GHC.Iface.Ext.Binary ( readHieFile, hie_file_result, NameCacheUpdater(..))
2323
import GHC.Types.SrcLoc ( realSrcLocSpan, mkRealSrcLoc )
2424
import Data.Map as M

haddock-api/src/Haddock/Interface/Create.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ availExportItem is_sig modMap thisMod semMod warnings exportedNames
624624
Just synifiedDecl -> pure synifiedDecl
625625
Nothing -> O.pprPanic "availExportItem" (O.text err)
626626

627-
availExportDecl :: HasCallStack => AvailInfo -> LHsDecl GhcRn
627+
availExportDecl :: AvailInfo -> LHsDecl GhcRn
628628
-> (DocForDecl Name, [(Name, DocForDecl Name)])
629629
-> ErrMsgGhc [ ExportItem GhcRn ]
630630
availExportDecl avail decl (doc, subs)
@@ -979,7 +979,7 @@ extractDecl declMap name decl
979979
_ -> Left "internal: extractDecl (ClsInstD)"
980980
_ -> Left ("extractDecl: Unhandled decl for " ++ getOccString name)
981981

982-
extractPatternSyn :: HasCallStack => Name -> Name -> [LHsTypeArg GhcRn] -> [LConDecl GhcRn] -> Either ErrMsg (LSig GhcRn)
982+
extractPatternSyn :: Name -> Name -> [LHsTypeArg GhcRn] -> [LConDecl GhcRn] -> Either ErrMsg (LSig GhcRn)
983983
extractPatternSyn nm t tvs cons =
984984
case filter matches cons of
985985
[] -> Left . O.showSDocUnsafe $

haddock-api/src/Haddock/Interface/Specialize.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ renameLBinder :: LHsTyVarBndr flag GhcRn -> Rename (IdP GhcRn) (LHsTyVarBndr fla
313313
renameLBinder = located renameBinder
314314

315315
-- | Core renaming logic.
316-
renameName :: (Eq name, SetName name) => name -> Rename name name
316+
renameName :: SetName name => name -> Rename name name
317317
renameName name = do
318318
RenameEnv { .. } <- get
319319
case Map.lookup (getName name) rneCtx of

haddock-api/src/Haddock/InterfaceFile.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ writeInterfaceFile filename iface = do
159159
type NameCacheAccessor m = (m NameCache, NameCache -> m ())
160160

161161

162-
nameCacheFromGhc :: forall m. (GhcMonad m, MonadIO m) => NameCacheAccessor m
162+
nameCacheFromGhc :: forall m. GhcMonad m => NameCacheAccessor m
163163
nameCacheFromGhc = ( read_from_session , write_to_session )
164164
where
165165
read_from_session = do

haddock-api/src/Haddock/Parser.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import GHC.Parser.Lexer ( mkPState, unP, ParseResult(POk, PFailed) )
2424
import GHC.Parser ( parseIdentifier )
2525
import GHC.Types.Name.Occurrence ( occNameString )
2626
import GHC.Types.Name.Reader ( RdrName(..) )
27-
import GHC.Types.SrcLoc ( mkRealSrcLoc, GenLocated(..), unLoc )
27+
import GHC.Types.SrcLoc ( mkRealSrcLoc, GenLocated(..) )
2828
import GHC.Data.StringBuffer ( stringToStringBuffer )
2929

3030

haddock-test/src/Test/Haddock/Config.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Data.Maybe
1818
import Distribution.Text
1919
import Distribution.Types.PackageName
2020
import Distribution.InstalledPackageInfo
21-
import Distribution.Simple.Compiler hiding (Flag)
21+
import Distribution.Simple.Compiler
2222
import Distribution.Simple.GHC
2323
import Distribution.Simple.PackageIndex
2424
import Distribution.Simple.Program

0 commit comments

Comments
 (0)