Minoru / hakyll-convert

Import from other blog engines to Hakyll
Other
7 stars 0 forks source link

Allow text 2.1, fix GHC 9.8 build #57

Closed Minoru closed 8 months ago

Minoru commented 8 months ago

This fixes the build with GHC 9.8: https://github.com/commercialhaskell/stackage/issues/7304

Also fix the following GHC 9.8 warning:

src/Hakyll/Convert/Blogger.hs:230:14: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Data.List, but defined in GHC.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."
    |
230 |   map (first head . unzip)
    |              ^^^^
Minoru commented 8 months ago

I bumped the version in 0.3.0.4@rev:7 on Hackage. I'm too lazy right now to make a new release to fix the warning :)