mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Class: Semigroup instance for FileTree with base >= 4.9.
This commit is contained in:
@@ -923,7 +923,11 @@ data FileInfo = FileInfo { infoFileMTime :: UTCTime
|
||||
}
|
||||
|
||||
newtype FileTree = FileTree {unFileTree :: M.Map FilePath FileInfo}
|
||||
#if MIN_VERSION_base(4,9,0)
|
||||
deriving (Semigroup, Monoid)
|
||||
#else
|
||||
deriving (Monoid)
|
||||
#endif
|
||||
|
||||
getFileInfo :: FilePath -> FileTree -> Maybe FileInfo
|
||||
getFileInfo fp tree =
|
||||
|
||||
Reference in New Issue
Block a user