emanote-1.0.0.0: Emanate a structured view of your plain-text notes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Emanote.Route.ModelRoute

Description

Route types representing the resources in our Model.

See also: SiteRoute.

Synopsis

Documentation

data ModelRoute Source #

A R to anywhere in Model

Instances

Instances details
ToJSON ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Generic ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Associated Types

type Rep ModelRoute :: Type -> Type #

Show ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Eq ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Ord ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

type Rep ModelRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

type Rep ModelRoute = D1 ('MetaData "ModelRoute" "Emanote.Route.ModelRoute" "emanote-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ModelRoute_StaticFile" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StaticFileRoute)) :+: C1 ('MetaCons "ModelRoute_LML" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LMLRoute)))

data LMLRoute Source #

R to a note file in LML (lightweight markup language) format

Constructors

LMLRoute_Md (R ('LMLType 'Md)) 
LMLRoute_Org (R ('LMLType 'Org)) 

Instances

Instances details
ToJSON LMLRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Generic LMLRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Associated Types

type Rep LMLRoute :: Type -> Type #

Methods

from :: LMLRoute -> Rep LMLRoute x #

to :: Rep LMLRoute x -> LMLRoute #

Show LMLRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Eq LMLRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Ord LMLRoute Source # 
Instance details

Defined in Emanote.Route.ModelRoute

Indexable RelIxs Rel Source # 
Instance details

Defined in Emanote.Model.Link.Rel

Indexable NoteIxs Note Source # 
Instance details

Defined in Emanote.Model.Note

Indexable TaskIxs Task Source # 
Instance details

Defined in Emanote.Model.Task

type Rep LMLRoute Source # 
Instance details

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.