Friday 3 June 2016

Haskell: Installing hoogle tool on your machine

Hoogle is a Haskell API search engine, where you can search apis by using name (or) by providing type signature approximately.

You can go to following url and search for APIS.

You can install hoogle in your machine by using the command 'cabal install hoogle'. Always call 'cabal update' before installing any package.

hoogle is installed at "{HOME}/Library/Haskell/bin/hoogle"

Add hoogle installation path to your system path. After successful installation, generate databases with 'hoogle data' command.

After successful generation of databases, you can use hoogle command to query apis using name (or) type signature.
$ hoogle 'fromList'
Data.HashTable fromList :: Eq key => (key -> Int32) -> [(key, val)] -> IO (HashTable key val)
Data.IntMap.Strict fromList :: [(Key, a)] -> IntMap a
Data.IntMap.Lazy fromList :: [(Key, a)] -> IntMap a
Data.IntSet fromList :: [Key] -> IntSet
Data.Sequence fromList :: [a] -> Seq a
Data.Set fromList :: Ord a => [a] -> Set a
Data.Map.Lazy fromList :: Ord k => [(k, a)] -> Map k a
Data.Map.Strict fromList :: Ord k => [(k, a)] -> Map k a
Data.IntMap.Strict fromListWith :: (a -> a -> a) -> [(Key, a)] -> IntMap a
Data.IntMap.Lazy fromListWith :: (a -> a -> a) -> [(Key, a)] -> IntMap a
Data.Map.Lazy fromListWith :: Ord k => (a -> a -> a) -> [(k, a)] -> Map k a
Data.Map.Strict fromListWith :: Ord k => (a -> a -> a) -> [(k, a)] -> Map k a
Data.IntMap.Strict fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> IntMap a
Data.IntMap.Lazy fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> IntMap a
Data.Map.Lazy fromListWithKey :: Ord k => (k -> a -> a -> a) -> [(k, a)] -> Map k a
Data.Map.Strict fromListWithKey :: Ord k => (k -> a -> a -> a) -> [(k, a)] -> Map k a
Text.Html toHtmlFromList :: HTML a => [a] -> Html
Text.XHtml.Strict toHtmlFromList :: HTML a => [a] -> Html
Text.XHtml.Frameset toHtmlFromList :: HTML a => [a] -> Html
Text.XHtml.Transitional toHtmlFromList :: HTML a => [a] -> Html

$ hoogle 'a -> a -> a -> a -> a -> a'
Text.Parsec.Error showErrorMessages :: String -> String -> String -> String -> String -> [Message] -> String
Text.ParserCombinators.Parsec.Error showErrorMessages :: String -> String -> String -> String -> String -> [Message] -> String
Control.Monad liftM5 :: Monad m => (a1 -> a2 -> a3 -> a4 -> a5 -> r) -> m a1 -> m a2 -> m a3 -> m a4 -> m a5 -> m r
Data.List zipWith5 :: (a -> b -> c -> d -> e -> f) -> [a] -> [b] -> [c] -> [d] -> [e] -> [f]
Data.List zipWith6 :: (a -> b -> c -> d -> e -> f -> g) -> [a] -> [b] -> [c] -> [d] -> [e] -> [f] -> [g]



Previous                                                 Next                                                 Home

No comments:

Post a Comment