Portability | portable |
---|---|
Stability | development |
Maintainer | mariusz@scrive.com |
Safe Haskell | Safe-Infered |
All types used by this module.
- data ResourceType
- data Resource = Resource {
- rtype :: !ResourceType
- path :: !FilePath
- data ResourceSet = ResourceSet {}
- data ResourceSpec = ResourceSpec {
- sets :: ![ResourceSet]
- ignored :: ![FilePath]
- data ImportType
- data ResourceSetForImport = ResourceSetForImport {}
- newtype ResourceSetsForImport = ResourceSetsForImport [ResourceSetForImport]
- filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource]
Types
data ResourceType Source
All resources have to be typed
Resource is a file with a type.
Resource | |
|
data ResourceSpec Source
ResourceSpec
is a list of ResourceSet
and list of files or directories that can be ignored by check
function.
ResourceSpec | |
|
data ImportType Source
We can import resources for development (no joined, gziped or minified) or for production.
data ResourceSetForImport Source
ResourceSet
that is ready to be imported. It's all you need to generate import list for html.
newtype ResourceSetsForImport Source
Set of ResourceSetForImport
Utils
filterByType :: (ResourceType -> Bool) -> ResourceSet -> [Resource]Source
Utils for getting specyfic parts of ResourceSet