Hi guys, I was trying to make a Windows binary for Darcs 2.4.3 on Windows, but unfortunately there's an error:
---------8<--------- src\Darcs\SlurpDirectory\Internal.hs:390:64: Couldn't match expected type `Int64' against inferred type `base:System.Posix.Types.COff' Expected type: (Maybe String, EpochTime, FileOffset) Inferred type: (Maybe String, EpochTime, base:System.Posix.Types.FileOffset) In the first argument of `SlurpFile', namely `mtime' In the second argument of `($)', namely `SlurpFile mtime ls' src\Darcs\SlurpDirectory\Internal.hs:452:51: Couldn't match expected type `Int64' against inferred type `base:System.Posix.Types.COff' Expected type: (Maybe String, EpochTime, FileOffset) Inferred type: (Maybe String, EpochTime, base:System.Posix.Types.FileOffset) In the first argument of `SlurpFile', namely `mtime' In the second argument of `($)', namely `SlurpFile mtime ls' cabal: Error: some packages failed to install: darcs-2.4.3 failed during the building phase. The exception was: exit: ExitFailure 1 ---------8<--------- Probably this happens for this declaration and the new unix-compat bundling: ---------8<--------- #if mingw32_HOST_OS && __GLASGOW_HASKELL__ < 612 import Data.Int ( Int64 ) #else import System.Posix.Types ( FileOffset ) #endif #include "impossible.h" #if mingw32_HOST_OS && __GLASGOW_HASKELL__ < 612 type FileOffset = Int64 #endif ---------8<--------- Being the main cause of the previous "hard" bugs on Windows (as far as I can remember), I didn't try to make a "quick fix". Petr, you worked on this part, right? Maybe there's something to be fixed on the unix-compat library? Salvatore _______________________________________________ darcs-users mailing list darcs-users@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-users