yu-core-0.1.0.0: The core of Yu.

Copyright(C) Qinka 2017
LicenseGPL3
Maintainerme@qinka.pro
Stabilityexperimental
Portabilityunknow
Safe HaskellNone
LanguageHaskell2010

Yu.Core.Control.Internal

Description

The control part of the glob.

Synopsis

Documentation

lookupPostUnResT Source #

Arguments

:: Controly site 
=> [Text]

index

-> HandlerT site IO (Maybe ResT) 

lookup the undefined index

getFile Source #

Arguments

:: (MonadResource m, MonadHandler m) 
=> Text

file name (field name)

-> m (Maybe ByteString) 

get the file via file name

getField Source #

Arguments

:: (MonadResource m, MonadHandler m) 
=> Text

field name

-> m (Maybe Text) 

get the field text

putItem Source #

Arguments

:: (Controly site, Val a) 
=> Maybe ResT

resource index (maybe)

-> Maybe a

item (maybe)

-> (a -> ResT -> Action (HandlerT site IO) ())

upload action for database

-> HandlerT site IO TypedContent 

for upload the items

returnSucc :: HandlerT site IO TypedContent Source #

return sucecess

class (Mongodic site (HandlerT site IO), MonadHandler (HandlerT site IO), Hamletic site (HandlerT site IO), Yesod site) => Controly site Source #

for control