Deewiant / glob

Haskell library for glob matching
https://deewiant.iki.fi/projects/glob/
Other
25 stars 8 forks source link

Fail with GHC 9.2 and Win32 2.12 #40

Closed kakkun61 closed 2 years ago

kakkun61 commented 2 years ago

A build log is:

Failed to build Glob-0.10.1.
Build log (
C:\Users\kazuki\AppData\Roaming\cabal\logs\ghc-9.2.1\Glob-0.10.1-ba443ecd253f1ed0cdc0f5bb4fab897565635639.log
):
Preprocessing library for Glob-0.10.1..
Building library for Glob-0.10.1..
[1 of 7] Compiling System.FilePath.Glob.Utils ( System\FilePath\Glob\Utils.hs, dist\build\System\FilePath\Glob\Utils.o )

System\FilePath\Glob\Utils.hs:29:28: error:
    Module ‘System.Win32.File’ does not export ‘c_GetFileAttributes’
   |
29 | import System.Win32.File  (c_GetFileAttributes, fILE_ATTRIBUTE_DIRECTORY)
   |                            ^^^^^^^^^^^^^^^^^^^
cabal: Failed to build Glob-0.10.1. See the build log above for details.

Win32 2.12's change log says:

Add export lists to all modules, hiding numerous internal c_ bindings.