git.iko.soy/typeable/cabal2nix
on master help sign in
Distribution/NixOS/Fetch.hs: cosmetic
commit49e5f973a979d9cecb65b7de77bbeae4ff8b8320 authorPeter Simons <simons@cryp.to> dateWed 20 Aug 2014, 12:03 (12 years ago) parent3df9183
1 file changed+4−4
src/Distribution/NixOS/Fetch.hs+4−4
src/Distribution/NixOS/Fetch.hs+4−4
@@ -41,10 +41,10 @@ fromDerivationSource DerivationSource{..} = Source derivUrl derivRevision $ Just
4141
4242-- | Fetch a source, trying any of the various nix-prefetch-* scripts.
4343fetch :: forall a. (String -> MaybeT IO a) -- ^ This function is passed the output path name as an argument.
44− -- It should return 'Nothing' if the file doesn't match the expected format.
45− -- This is required, because we cannot always check if a download succeeded otherwise.
46− -> Source -- ^ The source to fetch from.
47− -> IO (Maybe (DerivationSource, a)) -- ^ The derivation source and the result of the processing function. Returns Nothing if the download failed.
44+ -- It should return 'Nothing' if the file doesn't match the expected format.
45+ -- This is required, because we cannot always check if a download succeeded otherwise.
46+ -> Source -- ^ The source to fetch from.
47+ -> IO (Maybe (DerivationSource, a)) -- ^ The derivation source and the result of the processing function. Returns Nothing if the download failed.
4848fetch f = runMaybeT . fetchers where
4949 fetchers :: Source -> MaybeT IO (DerivationSource, a)
5050 fetchers source = msum . (fetchLocal source :) $ map (\fetcher -> fetchWith fetcher source >>= process)