Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type FileName = String
- type FileContent = String
- type ComponentId = String
- data File = File {}
- pseudoFile :: File
- isRoot :: Lens' File Bool
- filePath :: Lens' File FilePath
- fileName :: Lens' File FileName
- fileDir :: Lens' File FilePath
- fileContent :: Lens' File String
- componentId :: Lens' File ComponentId
- readFile :: FilePath -> FilePath -> MaybeT Action File
- parseFilePath :: FilePath -> (FilePath, FileName)
- parseComponentId :: FilePath -> ComponentId -> FilePath -> ComponentId
Documentation
type FileContent = String Source
type ComponentId = String Source
File | |
|
pseudoFile :: File Source
parseFilePath :: FilePath -> (FilePath, FileName) Source
parseComponentId :: FilePath -> ComponentId -> FilePath -> ComponentId Source
Given a default component ID (usually the ID of the project on which duplo is run) and the file path, deduce the component ID of a particular file