packages feed

hoogle 4.2.5 → 4.2.6

raw patch · 7 files changed

+22/−15 lines, 7 filesdep ~Cabaldep ~basedep ~case-insensitivebinary-addedPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: Cabal, base, case-insensitive

API changes (from Hackage documentation)

- Paths_hoogle: getBinDir :: IO FilePath
- Paths_hoogle: getDataDir :: IO FilePath
- Paths_hoogle: getLibDir :: IO FilePath
- Paths_hoogle: getLibexecDir :: IO FilePath
+ Paths_hoogle: getBinDir, getLibexecDir, getDataDir, getLibDir :: IO FilePath

Files

+ datadir/resources/Copy of more_gray.png view

binary file changed (absent → 203 bytes)

datadir/resources/hoogle.js view
@@ -163,7 +163,7 @@     return {         showWaiting: function(){show("<i>Still working...</i>");},         showError: function(status,text){show("<i>Error: status " + status + "</i>");},-        showResult : function(text){show(text);},+        showResult: function(text){show(text);},         hide: function(){show();}     } }@@ -307,17 +307,19 @@ function cache(maxElems) {     // FIXME: Currently does not evict things-    var contents = {}; // what we have in the cache+    var contents = {}; // what we have in the cache, with # prepended+    // note that contents[toString] != undefined, since it's a default method+    // hence the leading #      return {         add: function(key,val)         {-            contents[key] = val;+            contents["#" + key] = val;         },                  ask: function(key)         {-            return contents[key];+            return contents["#" + key];         }     }; }
hoogle.cabal view
@@ -1,7 +1,7 @@ cabal-version:      >= 1.6 build-type:         Simple name:               hoogle-version:            4.2.5+version:            4.2.6 license:            GPL license-file:       docs/LICENSE category:           Development@@ -31,12 +31,12 @@  source-repository head     type:     darcs-    location: http://community.haskell.org/~ndm/darcs/hoogle/+    location: http://code.haskell.org/hoogle/  library     hs-source-dirs:     src     build-depends:-        base > 4 && < 4.4,+        base > 4 && < 5,         array, bytestring, containers, directory, filepath, process, random,         safe,         binary,@@ -112,10 +112,10 @@         enumerator == 0.4.*,         blaze-builder >= 0.2 && < 0.4,         http-types == 0.6.*,-        case-insensitive == 0.2.*,+        case-insensitive >= 0.2 && < 0.4,         wai == 0.4.*,         warp == 0.4.*,-        Cabal >= 1.8 && < 1.11+        Cabal >= 1.8 && < 1.13      other-modules:         CmdLine.All
src/Data/TypeMap.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-}  module Data.TypeMap(     TypeMap, empty,@@ -31,8 +32,10 @@ insert a (TypeMap mp) = TypeMap $ Map.insert (typeOf a) (toDyn a) mp  +#if __GLASGOW_HASKELL__ < 702 instance Ord TypeRep where     compare a b = compare (splitTyConApp a) (splitTyConApp b)  instance Ord TyCon where     compare a b = compare (tyConString a) (tyConString b)+#endif
src/General/System.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE CPP #-}+{-# LANGUAGE CPP, ScopedTypeVariables #-}  -- | Module for system like things in base/directory/etc, or could plausibly be added. module General.System(module General.System, module X) where@@ -79,4 +79,4 @@   getEnvVar :: String -> IO (Maybe String)-getEnvVar x = catch (fmap Just $ getEnv x) (const $ return Nothing)+getEnvVar x = E.catch (fmap Just $ getEnv x) (\(x :: E.SomeException) -> return Nothing)
src/Hoogle/Store/Type.hs view
@@ -34,7 +34,7 @@  -- | Given how many you would like to allocate, return your base address onceKeys :: Int -> IO Int-onceKeys = unsafePerformIO $ do+onceKeys = System.IO.Unsafe.unsafePerformIO $ do     ref <- newIORef 0     return $ \n -> atomicModifyIORef ref $ \x -> (x+n, x) @@ -93,7 +93,7 @@  {-# NOINLINE once #-} once :: a -> Once a-once x = unsafePerformIO $ do+once x = System.IO.Unsafe.unsafePerformIO $ do     key <- onceKeys 1     return $ Once key x 
src/Recipe/Download.hs view
@@ -52,12 +52,14 @@ downloadTarball :: CmdLine -> FilePath -> URL -> IO () downloadTarball opt out url = do     b <- doesFileExist $ out <.> "txt"-    unless b $ do+    when (not b || redownload opt) $ do         wget opt (out <.> "tar.gz") url         createDirectoryIfMissing True out         withDirectory out $ do             check "gzip" "http://gnuwin32.sourceforge.net/packages/gzip.htm"             check "tar" "http://gnuwin32.sourceforge.net/packages/gtar.htm"-            system_ $ "gzip -d .." </> takeFileName out <.> "tar.gz"+            putStrLn "Extracting tarball... "+            system_ $ "gzip --decompress --force .." </> takeFileName out <.> "tar.gz"             system_ $ "tar -xf .." </> takeFileName out <.> "tar"+            putStrLn "Finished extracting tarball"         writeFile (out <.> "txt") ""