File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -288,17 +288,18 @@ data PluginDescriptor (ideState :: Type) =
288
288
-- The file extension must have a leading '.'.
289
289
}
290
290
291
- -- A description of the types of files that the plugin
292
- -- is intended to work on. It includes the origin of the
293
- -- file (the project, a dependency, or both), and the
294
- -- file extensions the plugin should work on.
291
+ -- | A description of the types of files that the plugin
292
+ -- is intended to work on. It includes the origin of the
293
+ -- file (the project, a dependency, or both), and the
294
+ -- file extensions the plugin should work on.
295
295
data PluginFileType = PluginFileType [SourceFileOrigin ] [T. Text ]
296
296
297
297
data SourceFileOrigin = FromProject | FromDependency deriving Eq
298
298
299
- -- Dependency files are written to the .hls/dependencies directory.
300
- -- If a file is not in this directory, we assume that it is a
301
- -- project file.
299
+ -- | Dependency files are written to the .hls/dependencies directory
300
+ -- under the project root.
301
+ -- If a file is not in this directory, we assume that it is a
302
+ -- project file.
302
303
getSourceFileOrigin :: NormalizedFilePath -> SourceFileOrigin
303
304
getSourceFileOrigin f =
304
305
case [" .hls" , " dependencies" ] `isInfixOf` (splitDirectories file) of
You can’t perform that action at this time.
0 commit comments