Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Function and associated helpers to determine the matching root name. The root name may contain zero or more parameter values.
Synopsis
- rootMatch :: CandidateFile -> Separators -> [ParameterPattern] -> String -> Logic ([NamedParamMatch], CandidateFile, String)
Documentation
rootMatch :: CandidateFile -> Separators -> [ParameterPattern] -> String -> Logic ([NamedParamMatch], CandidateFile, String) Source #
Determine which parts of the input name form the basePrefix and any parameter values for searching for related files (expected and associated). Parameter values are taken from subdirectory paths or filename elements (in that order).