Hoogle Search

Within Stackage Nightly 2025-09-29 (ghc-9.12.2)

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

  1. setupClientQuery :: forall record sid a (m :: Type -> Type) . (PersistEntityBackend record ~ SqlBackend, ToBackendKey SqlBackend record, SafeToInsert record, MonadIO m) => (a -> record) -> (sid -> Timed a -> record) -> (sid -> Timed a -> record) -> (sid -> ServerTime -> record) -> ClientStore (Key record) sid a -> SqlPersistT m ()

    mergeful-persistent Data.Mergeful.Persistent

    Set up a client store. You shouldn't need this.

  2. setupServerQuery :: forall sid record a . (PersistEntity record, PersistEntityBackend record ~ SqlBackend) => (sid -> Timed a -> Entity record) -> ServerStore sid a -> SqlPersistT IO ()

    mergeful-persistent Data.Mergeful.Persistent

    Set up the server store You shouldn't need this.

  3. setupClientQuery :: forall clientRecord (m :: Type -> Type) a sid . (PersistEntity clientRecord, PersistEntityBackend clientRecord ~ SqlBackend, SafeToInsert clientRecord, MonadIO m) => (a -> clientRecord) -> (sid -> a -> clientRecord) -> (sid -> clientRecord) -> ClientStore (Key clientRecord) sid a -> SqlPersistT m ()

    mergeless-persistent Data.Mergeless.Persistent

    Setup a client store You shouldn't need this.

  4. setupServerQuery :: forall record (m :: Type -> Type) a . (PersistEntity record, PersistEntityBackend record ~ SqlBackend, MonadIO m) => (a -> record) -> ServerStore (Key record) a -> SqlPersistT m ()

    mergeless-persistent Data.Mergeless.Persistent

    Set up a server store in the database. You shouldn't need this. This uses insertKey function and is therefore unsafe.

  5. setupUnsyncedClientQuery :: forall clientRecord (m :: Type -> Type) a . (PersistEntity clientRecord, PersistEntityBackend clientRecord ~ SqlBackend, SafeToInsert clientRecord, MonadIO m) => (a -> clientRecord) -> [a] -> SqlPersistT m ()

    mergeless-persistent Data.Mergeless.Persistent

    Setup an unsynced client store You shouldn't need this.

  6. set' :: ASetter' s a -> a -> s -> s

    microformats2-parser Data.Microformats2.Parser.Util

    Replace the target of a Lens or all of the targets of a Setter' or Traversal with a constant value, without changing its type. This is a type restricted version of set, which retains the type of the original.

    >>> set' mapped x [a,b,c,d]
    [x,x,x,x]
    
    >>> set' _2 "hello" (1,"world")
    (1,"hello")
    
    >>> set' mapped 0 [1,2,3,4]
    [0,0,0,0]
    
    Note: Attempting to adjust set' a Fold or Getter will fail at compile time with an relatively nice error message.
    set' :: Setter' s a    -> a -> s -> s
    set' :: Iso' s a       -> a -> s -> s
    set' :: Lens' s a      -> a -> s -> s
    set' :: Traversal' s a -> a -> s -> s
    

  7. sets :: (Profunctor p, Profunctor q, Settable f) => (p a b -> q s t) -> Optical p q f s t a b

    microformats2-parser Data.Microformats2.Parser.Util

    Build a Setter, IndexedSetter or IndexPreservingSetter depending on your choice of Profunctor.

    sets :: ((a -> b) -> s -> t) -> Setter s t a b
    

  8. setting :: ((a -> b) -> s -> t) -> IndexPreservingSetter s t a b

    microformats2-parser Data.Microformats2.Parser.Util

    Build an index-preserving Setter from a map-like function. Your supplied function f is required to satisfy:

    f idid
    f g . f h ≡ f (g . h)
    
    Equational reasoning:
    setting . overid
    over . settingid
    
    Another way to view sets is that it takes a "semantic editor combinator" and transforms it into a Setter.
    setting :: ((a -> b) -> s -> t) -> Setter s t a b
    

  9. setBackendSpecificForeignKeyName :: (EntityNameDB -> FieldNameDB -> ConstraintNameDB) -> BackendSpecificOverrides -> BackendSpecificOverrides

    persistent-mtl Database.Persist.Sql.Shim

    Set the backend's foreign key generation function to this value.

  10. setEntityDBName :: EntityNameDB -> EntityDef -> EntityDef

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

Page 61 of many | Previous | Next