Hoogle Search
Within LTS Haskell 22.26 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.-
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.
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.-
synthesizer-dimensional Synthesizer.Dimensional.Signal No documentation available.
-
synthesizer-dimensional Synthesizer.Dimensional.Signal.Private No documentation available.
share :: [(String, String)] -> [NodeId] -> Dot ()dotgen Text.Dot share is when a set of nodes share specific attributes. Usually used for layout tweaking.
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.share :: (Typeable a, Typeable f) => Shareable f a -> Shared f adictionary-sharing Data.ClassSharing Share/memoize a class member of type f a.
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.share :: Exp t -> (Exp t -> Action a) -> Action ansis 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