flaw-asset-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Asset.RemapAssetPack

Description

 
Synopsis

Documentation

data RemapAssetPack ap ai Source #

Remap asset pack, includes underlying asset pack and mapping of asset ids.

Constructors

RemapAssetPack !ap !(HashMap ai (AssetId ap)) 
Instances
(Embed ap, Embed ai, Embed (AssetId ap)) => Embed (RemapAssetPack ap ai) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

Methods

embedExp :: RemapAssetPack ap ai -> Q Exp #

(WebAssetPack ap, Eq ai, Hashable ai, Typeable ai, Show ai) => WebAssetPack (RemapAssetPack ap ai) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

(AssetPack ap, Eq ai, Hashable ai, Typeable ai, Show ai) => AssetPack (RemapAssetPack ap ai) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

Associated Types

type AssetId (RemapAssetPack ap ai) :: Type Source #

data AssetPackBuilder (RemapAssetPack ap ai) :: Type Source #

type AssetId (RemapAssetPack ap ai) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

type AssetId (RemapAssetPack ap ai) = ai
data AssetPackBuilder (RemapAssetPack ap ai) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

newtype RemapAssetPackContainer ai1 ai2 Source #

Remap asset pack container, includes only mapping, serializable.

Constructors

RemapAssetPackContainer (HashMap ai1 ai2) 
Instances
(Serialize ai1, Serialize ai2, Eq ai1, Hashable ai1) => Serialize (RemapAssetPackContainer ai1 ai2) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

(Embed ai1, Embed ai2) => Embed (RemapAssetPackContainer ai1 ai2) Source # 
Instance details

Defined in Flaw.Asset.RemapAssetPack

Methods

embedExp :: RemapAssetPackContainer ai1 ai2 -> Q Exp #

remapAssetWithHash :: Text -> ByteString -> Text Source #

One particular function suitable for generating "hashed" URLs.