shakespeare 2.0.19 → 2.0.20
raw patch · 3 files changed
+6/−2 lines, 3 files
Files
- ChangeLog.md +3/−0
- Text/Shakespeare/I18N.hs +2/−1
- shakespeare.cabal +1/−1
ChangeLog.md view
@@ -1,4 +1,7 @@ +### 2.0.20+* Restore allowing GHC to detect changes to i18n message files in GHC >= 8.4.+ ### 2.0.19 * Change of the default behaviour of `*File` functions, they now will add their templates' source file to ghc-dependencies, thus recompiling on templates' changes.
Text/Shakespeare/I18N.hs view
@@ -154,7 +154,8 @@ mkMessageCommon genType prefix postfix master dt folder lang = do files <- qRunIO $ getDirectoryContents folder let files' = filter (`notElem` [".", ".."]) files- (_files', contents) <- qRunIO $ fmap (unzip . catMaybes) $ mapM (loadLang folder) files'+ (filess, contents) <- qRunIO $ fmap (unzip . catMaybes) $ mapM (loadLang folder) files'+ (mapM_.mapM_) addDependentFile filess let contents' = Map.toList $ Map.fromListWith (++) contents sdef <- case lookup lang contents' of
shakespeare.cabal view
@@ -1,5 +1,5 @@ name: shakespeare-version: 2.0.19+version: 2.0.20 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>