Home
last modified time | relevance | path

Searched refs:cabalFile (Results 1 – 25 of 37) sorted by relevance

12

/dports/devel/hs-ormolu/ormolu-0.4.0.0/src/Ormolu/Utils/
H A DExtensions.hs40 getExtensionsFromCabalFile cabalFile = liftIO $ do function
42 parseGenericPackageDescriptionMaybe <$> B.readFile cabalFile >>= \case
44 Nothing -> throwIO $ OrmoluCabalFileParsingFailed cabalFile
60 (takeDirectory cabalFile </>) <$> prependSrcDirs (dropExtensions m)
116 Just cabalFile -> pure . Just $ parentDir </> cabalFile
132 Just cabalFile -> do
133 extsByFile <- getExtensionsFromCabalFile cabalFile
137 relativeCabalFile <- makeRelativeToCurrentDirectory cabalFile
/dports/devel/stack/stack-2.7.3/_cabal_deps/hpack-0.34.4/test/Hpack/
H A DCabalFileSpec.hs40 let cabalFile = ["-- This file has been generated from package.yaml by hpack version 0.10.0."] function
41 extractVersion cabalFile `shouldBe` Just (makeVersion [0, 10, 0])
44 … let cabalFile = ["-- This file has been generated from some random file by hpack version 0.10.0."] function
45 extractVersion cabalFile `shouldBe` Just (makeVersion [0, 10, 0])
48 let cabalFile = ["-- This file has been generated from package.yaml by hpack version "] function
49 extractVersion cabalFile `shouldBe` Nothing
/dports/devel/hs-hpack/hpack-0.34.4/test/Hpack/
H A DCabalFileSpec.hs40 let cabalFile = ["-- This file has been generated from package.yaml by hpack version 0.10.0."] function
41 extractVersion cabalFile `shouldBe` Just (makeVersion [0, 10, 0])
44 … let cabalFile = ["-- This file has been generated from some random file by hpack version 0.10.0."] function
45 extractVersion cabalFile `shouldBe` Just (makeVersion [0, 10, 0])
48 let cabalFile = ["-- This file has been generated from package.yaml by hpack version "] function
49 extractVersion cabalFile `shouldBe` Nothing
/dports/devel/hs-ormolu/ormolu-0.4.0.0/tests/Ormolu/
H A DCabalExtensionsSpec.hs25 cabalFile <- findCabalFile start
26 cabalFile `shouldBe` Just expectedCabalFile
32 cabalFile <- findCabalFile $ dir </> "foo/bar.hs"
33 cabalFile `shouldBe` Nothing
/dports/devel/stack/stack-2.7.3/_cabal_deps/pantry-0.5.2.1/src/Pantry/
H A DHPack.hs54 let cabalFile = fromString . Hpack.resultCabalFile $ r function
56 … Hpack.Generated -> logDebug $ "hpack generated a modified version of " <> cabalFile
57 Hpack.OutputUnchanged -> logDebug $ "hpack output unchanged in " <> cabalFile
59 cabalFile <>
63 cabalFile <>
H A DStorage.hs582 let cabalFile = P.cabalFileName pkgName function
583 _ <- insertBy FilePath {filePathPath = cabalFile}
638 let cabalFile = P.cabalFileName pkgName function
639 fid <- insertBy FilePath {filePathPath = cabalFile}
805 cabalFile = P.cabalFileName name function
815 getHPackCabalFile hpackRecord ts tmap cabalFile
817 getHPackCabalFile item ts tmap cabalFile
845 getHPackCabalFile hpackRecord ts tmap cabalFile = do
852 tree = P.TreeMap $ Map.insert cabalFile cbTreeEntry tmap
H A DHackage.hs585 cabalFile <- resolveCabalFileInfo pir
587 withCachedTree rpli name ver cabalFile $ do
588 cabalFileKey <- withStorage $ getBlobKey cabalFile
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/stylish-haskell-0.12.2.0/lib/Language/Haskell/Stylish/Config/
H A DCabal.hs40 [Right cabalFile] -> return (Just cabalFile)
51 readDefaultLanguageExtensions verbose cabalFile = do
52 verbose $ "Parsing " <> cabalFile <> "..."
53 packageDescription <- Cabal.readGenericPackageDescription Cabal.silent cabalFile
/dports/devel/stack/stack-2.7.3/_cabal_deps/hpack-0.34.4/src/
H A DHpack.hs182 hashMismatch cabalFile = case cabalFileHash cabalFile of function
184 Just hash -> hash /= calculateHash cabalFile
214 writeCabalFile options toStdout name cabalFile = do
215 write . unlines $ renderCabalFile (decodeOptionsTarget options) cabalFile
220 makeCabalFile strategy mExistingCabalFile cabalVersion v pkg = cabalFile
222 cabalFile = CabalFile cabalVersion (Just v) hash body function
225 | shouldGenerateHash mExistingCabalFile strategy = Just $ calculateHash cabalFile
/dports/devel/hs-hpack/hpack-0.34.4/src/
H A DHpack.hs182 hashMismatch cabalFile = case cabalFileHash cabalFile of function
184 Just hash -> hash /= calculateHash cabalFile
214 writeCabalFile options toStdout name cabalFile = do
215 write . unlines $ renderCabalFile (decodeOptionsTarget options) cabalFile
220 makeCabalFile strategy mExistingCabalFile cabalVersion v pkg = cabalFile
222 cabalFile = CabalFile cabalVersion (Just v) hash body function
225 | shouldGenerateHash mExistingCabalFile strategy = Just $ calculateHash cabalFile
/dports/devel/hs-ormolu/ormolu-0.4.0.0/src/Ormolu/
H A DException.hs88 OrmoluCabalFileParsingFailed cabalFile -> do
91 put $ " " <> T.pack cabalFile
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/implicit-hie-cradle-0.3.0.5/src/Hie/Implicit/
H A DCradle.hs57 <|> (cabalExecutable >> cabalFile fp >>= cabal)
93 cabalFile :: FilePath -> MaybeT IO FilePath
94 cabalFile = findFileUpwards isCabal function
/dports/devel/stack/stack-2.7.3/_cabal_deps/hpack-0.34.4/src/Hpack/
H A DCabalFile.hs26 readCabalFile cabalFile = fmap parse <$> tryReadFile cabalFile function
/dports/devel/hs-hpack/hpack-0.34.4/src/Hpack/
H A DCabalFile.hs26 readCabalFile cabalFile = fmap parse <$> tryReadFile cabalFile function
/dports/devel/stack/stack-2.7.3/src/Stack/
H A DUpload.hs220 uploadRevision baseUrl creds ident@(PackageIdentifier name _) cabalFile = do
230 [ partLBS "cabalfile" cabalFile
/dports/lang/ghc/ghc-8.10.7/libraries/Cabal/cabal-install/Distribution/Client/
H A DProjectConfig.hs934 [cabalFile]
936 pkglocstr cabalFile))
1008 [ readSourcePackageLocalDirectory verbosity dir cabalFile
1010 , (dir, cabalFile) <- projectPackageLocal location ]
1062 readSourcePackageLocalDirectory verbosity dir cabalFile = do
1063 monitorFiles [monitorFileHashed cabalFile]
1067 . readSourcePackageCabalFile verbosity cabalFile
1068 =<< BS.readFile (root </> cabalFile)
H A DConfig.hs1476 cabalFile <- getConfigFilePath $ globalConfigFile globalFlags
1477 let backup = cabalFile ++ ".backup"
1478 notice verbosity $ "Renaming " ++ cabalFile ++ " to " ++ backup ++ "."
1479 renameFile cabalFile backup
1480 notice verbosity $ "Writing merged config to " ++ cabalFile ++ "."
1481 writeConfigFile cabalFile commentConf
H A DProjectBuilding.hs861 exists <- doesFileExist cabalFile
864 "Package .cabal file not found in the tarball: " ++ cabalFile
873 writeFileAtomic cabalFile pkgtxt
876 cabalFile = parentdir </> pkgsubdir function
/dports/devel/hs-cabal-install/cabal-cabal-install-3.4.0.0/cabal-install/Distribution/Client/
H A DProjectConfig.hs916 [cabalFile]
918 pkglocstr cabalFile))
990 [ readSourcePackageLocalDirectory verbosity dir cabalFile
992 , (dir, cabalFile) <- projectPackageLocal location ]
1044 readSourcePackageLocalDirectory verbosity dir cabalFile = do
1045 monitorFiles [monitorFileHashed cabalFile]
1049 . readSourcePackageCabalFile verbosity cabalFile
1050 =<< BS.readFile (root </> cabalFile)
H A DConfig.hs1471 cabalFile <- getConfigFilePath $ globalConfigFile globalFlags
1472 let backup = cabalFile ++ ".backup"
1473 notice verbosity $ "Renaming " ++ cabalFile ++ " to " ++ backup ++ "."
1474 renameFile cabalFile backup
1475 notice verbosity $ "Writing merged config to " ++ cabalFile ++ "."
1476 writeConfigFile cabalFile commentConf
H A DProjectBuilding.hs857 exists <- doesFileExist cabalFile
860 "Package .cabal file not found in the tarball: " ++ cabalFile
869 writeFileAtomic cabalFile pkgtxt
872 cabalFile = parentdir </> pkgsubdir function
/dports/devel/stack/stack-2.7.3/_cabal_deps/pantry-0.5.2.1/src/
H A DPantry.hs734 let cabalFile = fromString . Hpack.resultCabalFile $ r function
736 … Hpack.Generated -> logDebug $ "hpack generated a modified version of " <> cabalFile
737 Hpack.OutputUnchanged -> logDebug $ "hpack output unchanged in " <> cabalFile
739 cabalFile <>
743 cabalFile <>
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/ghc-exactprint-0.6.4/tests/examples/ghc88/
H A DUtils.hs898 [cabalFile] -> return cabalFile
/dports/math/hs-Agda/Agda-2.6.2/_cabal_deps/Cabal-3.0.2.0/Distribution/Simple/
H A DUtils.hs1466 [cabalFile] -> return (Right cabalFile)
/dports/lang/ghc/ghc-8.10.7/libraries/Cabal/Cabal/Distribution/Simple/
H A DUtils.hs1469 [cabalFile] -> return (Right cabalFile)

12