Hoogle Search

Within LTS Haskell 22.18 (ghc-9.6.4)

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.

Page 1 of 1