| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.Assets
Description
External file Assets.
Synopsis
- data Asset
- mkAsset :: Text -> ByteString -> Asset
- content :: Asset -> ByteString
- description :: Asset -> Text
- toFile :: Asset -> PathSegment -> FileLayout
- data Asset
- readAsset :: OsPath -> Text -> Code Q Asset
- content :: Asset -> ByteString
- description :: Asset -> Text
- toFile :: Asset -> PathSegment -> FileLayout
Assets
An arbitrary file asset; a ByteString with a description.
Constructors
Accessors
File Dumping
toFile :: Asset -> PathSegment -> FileLayout Source #
Convert an Asset to a FileLayout node given a PathSegment (file name)
it is to be written to.
Assets
An arbitrary file asset; a ByteString with a description.
Constructors
readAsset :: OsPath -> Text -> Code Q Asset Source #
Read a file from disk, providing a description of the asset.
Accessors
File Dumping
toFile :: Asset -> PathSegment -> FileLayout Source #
Convert an Asset to a FileLayout node given a PathSegment (file name)
it is to be written to.