flaw-asset-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Asset

Description

 
Synopsis

Documentation

class AssetPack a where Source #

Asset pack is a thing containing bytestrings accessible by asset id.

Associated Types

type AssetId a :: * Source #

data AssetPackBuilder a :: * Source #

data AssetError ai Source #

Exception datatype for asset loading.

Instances
Show ai => Show (AssetError ai) Source # 
Instance details

Defined in Flaw.Asset

Methods

showsPrec :: Int -> AssetError ai -> ShowS #

show :: AssetError ai -> String #

showList :: [AssetError ai] -> ShowS #

(Typeable ai, Show ai) => Exception (AssetError ai) Source # 
Instance details

Defined in Flaw.Asset

data AssetBuilderError ai Source #

Exception for asset building.

class AssetPack a => WebAssetPack a where Source #

Web asset pack can also return asset URL for loading bytestring directly.

Methods

getWebAssetUrl :: a -> AssetId a -> IO Text Source #

assetPackUrlQQ :: Embed a => a -> ExpQ Source #

Expression for quasi-quoter for getting url from web asset pack in compile time.