Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. share :: [[a] -> Q [Dec]] -> [a] -> Q [Dec]

    persistent Database.Persist.TH

    Apply the given list of functions to the same EntityDefs. This function is useful for cases such as:

    share [mkEntityDefList "myDefs", mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    If you only have a single function, though, you don't need this. The following is redundant:
    share [mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    Most functions require a full [EntityDef], which can be provided using $(discoverEntities) for all entites in scope, or defining mkEntityDefList to define a list of entities from the given block.

  2. share :: String -> String

    hxt Data.Atom

    Insert a String into the atom cache and convert the atom back into a String. locically share == id holds, but internally equal strings share the same memory.

  3. share :: [[a] -> Q [Dec]] -> [a] -> Q [Dec]

    persistent-test Init

    Apply the given list of functions to the same EntityDefs. This function is useful for cases such as:

    share [mkEntityDefList "myDefs", mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    If you only have a single function, though, you don't need this. The following is redundant:
    share [mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    Most functions require a full [EntityDef], which can be provided using $(discoverEntities) for all entites in scope, or defining mkEntityDefList to define a list of entities from the given block.

  4. share :: Storable yv => T s u t (T rate amp (T yv)) -> (T s u t (T rate amp (T yv)) -> T s u t b) -> T s u t b

    synthesizer-dimensional Synthesizer.Dimensional.Signal

    No documentation available.

  5. share :: Storable yv => T s u t (T rate amp (T yv)) -> (T s u t (T rate amp (T yv)) -> T s u t b) -> T s u t b

    synthesizer-dimensional Synthesizer.Dimensional.Signal.Private

    No documentation available.

  6. share :: [(String, String)] -> [NodeId] -> Dot ()

    dotgen Text.Dot

    share is when a set of nodes share specific attributes. Usually used for layout tweaking.

  7. share :: [[a] -> Q [Dec]] -> [a] -> Q [Dec]

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply the given list of functions to the same EntityDefs. This function is useful for cases such as:

    share [mkEntityDefList "myDefs", mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    If you only have a single function, though, you don't need this. The following is redundant:
    share [mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    Most functions require a full [EntityDef], which can be provided using $(discoverEntities) for all entites in scope, or defining mkEntityDefList to define a list of entities from the given block.

  8. share :: (Typeable a, Typeable f) => Shareable f a -> Shared f a

    dictionary-sharing Data.ClassSharing

    Share/memoize a class member of type f a.

  9. share :: [[a] -> Q [Dec]] -> [a] -> Q [Dec]

    hledger-web Hledger.Web.Import

    Apply the given list of functions to the same EntityDefs. This function is useful for cases such as:

    share [mkEntityDefList "myDefs", mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    If you only have a single function, though, you don't need this. The following is redundant:
    share [mkPersist sqlSettings] [persistLowerCase|
    -- ...
    |]
    
    Most functions require a full [EntityDef], which can be provided using $(discoverEntities) for all entites in scope, or defining mkEntityDefList to define a list of entities from the given block.

  10. share :: Exp t -> (Exp t -> Action a) -> Action a

    nsis Development.NSIS

    The Exp language is call-by-name, meaning you must use share to avoid evaluating an exression multiple times. Using share, if the expression has any side effects they will be run immediately, but not on subsequent uses. When defining functions operating on Exp, if you use the same input expression twice, you should share it. For example:

    strPalindrom x = share x $ \x -> x %== strReverse x
    
    If the expression was not shared, and x read from a file, then the file would be read twice.

Page 1 of many | Next