Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Variable | |
|
Instances
FromJSON Variable Source # | |
Defined in Foundation parseJSON :: Value -> Parser Variable parseJSONList :: Value -> Parser [Variable] | |
ToJSON Variable Source # | |
Defined in Foundation toEncoding :: Variable -> Encoding toJSONList :: [Variable] -> Value toEncodingList :: [Variable] -> Encoding | |
PersistEntity Variable Source # | |
Defined in Foundation type PersistEntityBackend Variable data Key Variable data EntityField Variable :: Type -> Type data Unique Variable keyToValues :: Key Variable -> [PersistValue] keyFromValues :: [PersistValue] -> Either Text (Key Variable) persistIdField :: EntityField Variable (Key Variable) entityDef :: proxy Variable -> EntityDef persistFieldDef :: EntityField Variable typ -> FieldDef toPersistFields :: Variable -> [SomePersistField] fromPersistValues :: [PersistValue] -> Either Text Variable persistUniqueKeys :: Variable -> [Unique Variable] persistUniqueToFieldNames :: Unique Variable -> NonEmpty (FieldNameHS, FieldNameDB) persistUniqueToValues :: Unique Variable -> [PersistValue] fieldLens :: EntityField Variable field -> forall (f :: Type -> Type). Functor f => (field -> f field) -> Entity Variable -> f (Entity Variable) keyFromRecordM :: Maybe (Variable -> Key Variable) | |
PersistField Variable Source # | |
Defined in Foundation toPersistValue :: Variable -> PersistValue fromPersistValue :: PersistValue -> Either Text Variable | |
AtLeastOneUniqueKey Variable Source # | |
Defined in Foundation requireUniquesP :: Variable -> NonEmpty (Unique Variable) | |
OnlyOneUniqueKey Variable Source # | |
Defined in Foundation onlyUniqueP :: Variable -> Unique Variable | |
PersistFieldSql Variable Source # | |
Defined in Foundation | |
ToBackendKey SqlBackend Variable Source # | |
Defined in Foundation toBackendKey :: Key Variable -> BackendKey SqlBackend fromBackendKey :: BackendKey SqlBackend -> Key Variable | |
SymbolToField "created" Variable UTCTime Source # | |
Defined in Foundation symbolToField :: EntityField Variable UTCTime | |
SymbolToField "name" Variable Text Source # | |
Defined in Foundation symbolToField :: EntityField Variable Text | |
SymbolToField "updated" Variable UTCTime Source # | |
Defined in Foundation symbolToField :: EntityField Variable UTCTime | |
SymbolToField "value" Variable Double Source # | |
Defined in Foundation symbolToField :: EntityField Variable Double | |
SymbolToField "id" Variable (Key Variable) Source # | |
Defined in Foundation symbolToField :: EntityField Variable (Key Variable) | |
FromJSON (Entity Variable) Source # | |
Defined in Foundation parseJSON :: Value -> Parser (Entity Variable) parseJSONList :: Value -> Parser [Entity Variable] | |
FromJSON (Key Variable) Source # | |
Defined in Foundation parseJSON :: Value -> Parser (Key Variable) parseJSONList :: Value -> Parser [Key Variable] | |
ToJSON (Entity Variable) Source # | |
Defined in Foundation toJSON :: Entity Variable -> Value toEncoding :: Entity Variable -> Encoding toJSONList :: [Entity Variable] -> Value toEncodingList :: [Entity Variable] -> Encoding | |
ToJSON (Key Variable) Source # | |
Defined in Foundation toJSON :: Key Variable -> Value toEncoding :: Key Variable -> Encoding toJSONList :: [Key Variable] -> Value toEncodingList :: [Key Variable] -> Encoding | |
Read (Key Variable) Source # | |
Show (Key Variable) Source # | |
Eq (Key Variable) Source # | |
Ord (Key Variable) Source # | |
Defined in Foundation | |
FromHttpApiData (Key Variable) Source # | |
Defined in Foundation parseUrlPiece :: Text -> Either Text (Key Variable) parseHeader :: ByteString -> Either Text (Key Variable) parseQueryParam :: Text -> Either Text (Key Variable) | |
ToHttpApiData (Key Variable) Source # | |
Defined in Foundation toUrlPiece :: Key Variable -> Text toEncodedUrlPiece :: Key Variable -> Builder toHeader :: Key Variable -> ByteString toQueryParam :: Key Variable -> Text | |
PathPiece (Key Variable) Source # | |
Defined in Foundation fromPathPiece :: Text -> Maybe (Key Variable) toPathPiece :: Key Variable -> Text | |
PersistField (Key Variable) Source # | |
Defined in Foundation toPersistValue :: Key Variable -> PersistValue fromPersistValue :: PersistValue -> Either Text (Key Variable) | |
PersistFieldSql (Key Variable) Source # | |
Defined in Foundation | |
data EntityField Variable typ Source # | |
Defined in Foundation data EntityField Variable typ
| |
newtype Key Variable Source # | |
Defined in Foundation | |
type PersistEntityBackend Variable Source # | |
Defined in Foundation type PersistEntityBackend Variable = SqlBackend | |
data Unique Variable Source # | |
Defined in Foundation |
type VariableId = Key Variable Source #
migrateAll :: Migration Source #
entityDefListFormigrateAll :: [EntityDef] Source #
App | |
|
Instances
YesodDispatch App | |
Defined in Application yesodDispatch :: YesodRunnerEnv App -> Application | |
Yesod App Source # | |
Defined in Foundation catchHandlerExceptions :: MonadUnliftIO m => App -> m a -> (SomeException -> m a) -> m a errorHandler :: ErrorResponse -> HandlerFor App TypedContent defaultLayout :: WidgetFor App () -> HandlerFor App Html urlParamRenderOverride :: App -> Route App -> [(Text, Text)] -> Maybe Builder isAuthorized :: Route App -> Bool -> HandlerFor App AuthResult isWriteRequest :: Route App -> HandlerFor App Bool authRoute :: App -> Maybe (Route App) cleanPath :: App -> [Text] -> Either [Text] [Text] joinPath :: App -> Text -> [Text] -> [(Text, Text)] -> Builder addStaticContent :: Text -> Text -> ByteString -> HandlerFor App (Maybe (Either Text (Route App, [(Text, Text)]))) maximumContentLength :: App -> Maybe (Route App) -> Maybe Word64 maximumContentLengthIO :: App -> Maybe (Route App) -> IO (Maybe Word64) makeLogger :: App -> IO Logger messageLoggerSource :: App -> Logger -> Loc -> LogSource -> LogLevel -> LogStr -> IO () jsLoader :: App -> ScriptLoadPosition App jsAttributes :: App -> [(Text, Text)] jsAttributesHandler :: HandlerFor App [(Text, Text)] makeSessionBackend :: App -> IO (Maybe SessionBackend) fileUpload :: App -> RequestBodyLength -> FileUpload shouldLogIO :: App -> LogSource -> LogLevel -> IO Bool yesodMiddleware :: ToTypedContent res => HandlerFor App res -> HandlerFor App res yesodWithInternalState :: App -> Maybe (Route App) -> (InternalState -> IO a) -> IO a defaultMessageWidget :: Html -> HtmlUrl (Route App) -> WidgetFor App () | |
ParseRoute App Source # | |
Defined in Foundation | |
RenderRoute App Source # | |
RouteAttrs App Source # | |
Defined in Foundation routeAttrs :: Route App -> Set Text | |
YesodPersist App Source # | |
Read (Route App) Source # | |
Show (Route App) Source # | |
Eq (Route App) Source # | |
data Route App Source # | |
type YesodPersistBackend App Source # | |
Defined in Foundation type YesodPersistBackend App = SqlBackend |
resourcesApp :: [ResourceTree String] Source #