Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:28:07+00:00 2026-06-06T07:28:07+00:00

Maybe I am missing something, but is there a way to search inside some

  • 0

Maybe I am missing something, but is there a way to search inside some package on hackage?

Let’s say I know that Snap framework has a function called render. How do I find it starting on it’s hackage page:
http://hackage.haskell.org/package/snap-0.9.0.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:28:09+00:00Added an answer on June 6, 2026 at 7:28 am

    You can use Hoogle for this (as for so many other things) by using the +package search operator.

    By default, Hoogle will search inside a standard set of packages by name or by type:

    • Searching for traverse will find:
      • traverse :: (Traversable t, Applicative f) => (a -> f b) -> t a -> f (t b)
        base Data.Traversable
      • traverse_ :: (Foldable t, Applicative f) => (a -> f b) -> t a -> f ()
        base Data.Foldable
        Map each element of a structure to an action, evaluate these actions from left to right, and ignore the results.
      • … and so on
    • Searching for (a -> b -> c) -> f a -> f b -> f c will find:
      • liftM2 :: Monad m => (a1 -> a2 -> r) -> m a1 -> m a2 -> m r
        base Control.Monad
        Promote a function to a monad, scanning the monadic arguments from left to right.
      • liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c
        base Control.Applicative
        Lift a binary function to actions.
      • … and so on

    Now, that’s fine and dandy, but what about other packages? If you search for render, you find Render :: RenderMode from OpenGL, render :: Doc -> String from pretty, and some other things; the snap package isn’t searched by default.

    However, if you add +packagename or +Module.Name to your search, Hoogle will only search inside the specified packages (and -packagename and -Module.Name remove packages/modules from the search). Thus, searching for +snap render finds only the following three things:

    • render :: HasHeist b => ByteString -> Handler b v ()
      snap Snap.Snaplet.Heist
      Renders a template as text/html. If the given template is not found, this returns empty.
    • renderAs :: HasHeist b => ByteString -> ByteString -> Handler b v ()
      snap Snap.Snaplet.Heist
      Renders a template as the given content type. If the given template is not found, this returns empty.
    • renderWithSplices :: HasHeist b => ByteString -> [(Text, SnapletSplice b v)] -> Handler b v ()
      snap Snap.Snaplet.Heist
      Renders a template with a given set of splices. This is syntax sugar for a common combination of heistLocal, bindSplices, and render.

    For more information on using Hoogle, you can check its manual on the Haskell wiki.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe I'm missing something obvious, but is there a simpler way to check if
Maybe I am missing something, but in symfony examples, in form submission action there's
Maybe im missing something but im not sure. All im simply trying to do
Maybe I'm missing something obvious, but I how can I view the expression tree
Maybe I'm missing something, but from Apple's documentation for NSHTTPCookieStorage , I can't help
This may be a simple fix and maybe I'm missing something obvious, but when
Maybe I'm just missing something in the docs, but it seem it's not possible
I may be missing something, but I'm sure that I've checked everything, I forked
Maybe I'm just missing something, but the HashSet(Of T) class has as TrimExcess method,
I don't know if I'm missing something here, but I am having trouble casting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.