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

Emanote.Source.Loc

Description

Notebook location

Synopsis

Type

data Loc Source #

Location of the notebook

The order here matters. Top = higher precedence.

Constructors

LocUser Int FilePath

The Int argument specifies the precedence (lower value = higher precedence)

LocDefault FilePath

The default location (ie., emanote default layer)

Instances

Instances details
Show Loc Source # 
Instance details

Defined in Emanote.Source.Loc

Methods

showsPrec :: Int -> Loc -> ShowS #

show :: Loc -> String #

showList :: [Loc] -> ShowS #

Eq Loc Source # 
Instance details

Defined in Emanote.Source.Loc

Methods

(==) :: Loc -> Loc -> Bool #

(/=) :: Loc -> Loc -> Bool #

Ord Loc Source # 
Instance details

Defined in Emanote.Source.Loc

Methods

compare :: Loc -> Loc -> Ordering #

(<) :: Loc -> Loc -> Bool #

(<=) :: Loc -> Loc -> Bool #

(>) :: Loc -> Loc -> Bool #

(>=) :: Loc -> Loc -> Bool #

max :: Loc -> Loc -> Loc #

min :: Loc -> Loc -> Loc #

Making a Loc

Using a Loc

locResolve :: (Loc, FilePath) -> FilePath Source #

Return the effective path of a file.

Dealing with layers of locs

primaryLayer :: HasCallStack => LocLayers -> Loc Source #

Return the "primary" LocUser layer (that which are not overrides).

Assumes that the user has put it always by last; i.e, `-L foo;primary/layer`.