Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Notebook location
Synopsis
- data Loc
- defaultLayer :: FilePath -> Loc
- userLayers :: NonEmpty FilePath -> Set Loc
- locResolve :: (Loc, FilePath) -> FilePath
- locPath :: Loc -> FilePath
- type LocLayers = Set Loc
- primaryLayer :: HasCallStack => LocLayers -> Loc
Type
Location of the notebook
The order here matters. Top = higher precedence.
LocUser Int FilePath | The Int argument specifies the precedence (lower value = higher precedence) |
LocDefault FilePath | The default location (ie., emanote default layer) |
Making a Loc
defaultLayer :: FilePath -> Loc Source #
Using a Loc
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`.