Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Route types representing the resources in our Model
.
See also: SiteRoute
.
Synopsis
- data ModelRoute
- modelRouteCase :: ModelRoute -> Either LMLRoute StaticFileRoute
- mkModelRouteFromFilePath :: FilePath -> Maybe ModelRoute
- data LMLRoute
- = LMLRoute_Md (R ('LMLType 'Md))
- | LMLRoute_Org (R ('LMLType 'Org))
- defaultLmlRoute :: R (ext :: FileType a) -> LMLRoute
- possibleLmlRoutes :: R (ext :: FileType a) -> [LMLRoute]
- lmlRouteCase :: LMLRoute -> Either (R ('LMLType 'Md)) (R ('LMLType 'Org))
- withLmlRoute :: (forall lmlType. HasExt ('LMLType lmlType) => R ('LMLType lmlType) -> r) -> LMLRoute -> r
- mkLMLRouteFromFilePath :: FilePath -> Maybe LMLRoute
- mkLMLRouteFromKnownFilePath :: LML -> FilePath -> Maybe LMLRoute
- isMdRoute :: LMLRoute -> Bool
- type StaticFileRoute = R 'AnyExt
Documentation
data ModelRoute Source #
A R to anywhere in Model
Instances
R to a note file in LML (lightweight markup language) format
LMLRoute_Md (R ('LMLType 'Md)) | |
LMLRoute_Org (R ('LMLType 'Org)) |
Instances
ToJSON LMLRoute Source # | |
Defined in Emanote.Route.ModelRoute | |
Generic LMLRoute Source # | |
Show LMLRoute Source # | |
Eq LMLRoute Source # | |
Ord LMLRoute Source # | |
Defined in Emanote.Route.ModelRoute | |
Indexable RelIxs Rel Source # | |
Indexable NoteIxs Note Source # | |
Indexable TaskIxs Task Source # | |
type Rep LMLRoute Source # | |
Defined in Emanote.Route.ModelRoute type Rep LMLRoute = D1 ('MetaData "LMLRoute" "Emanote.Route.ModelRoute" "emanote-1.0.0.0-inplace" 'False) (C1 ('MetaCons "LMLRoute_Md" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (R ('LMLType 'Md)))) :+: C1 ('MetaCons "LMLRoute_Org" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (R ('LMLType 'Org))))) |
withLmlRoute :: (forall lmlType. HasExt ('LMLType lmlType) => R ('LMLType lmlType) -> r) -> LMLRoute -> r Source #
mkLMLRouteFromKnownFilePath :: LML -> FilePath -> Maybe LMLRoute Source #
Like mkLMLRouteFromFilePath
, but when the file extension is known ahead
to be of lmlType
.
type StaticFileRoute = R 'AnyExt Source #