haskell-hvr / missingh

Utility library [Haskell]
https://hackage.haskell.org/package/MissingH
Other
87 stars 40 forks source link

doesn't work on ghc 7.6.1 on windows #13

Closed emmanueltouzery closed 11 years ago

emmanueltouzery commented 11 years ago

i may have a misconfigured setup, but i think it's OK.

I get this error when attempting to build (using cabal install missingh) 1.2.0.0 on windows 7:

[21 of 47] Compiling System.IO.WindowsCompat ( src\System\IO\WindowsCompat.hs, d ist\build\System\IO\WindowsCompat.o )

src\System\IO\WindowsCompat.hs:123:41: Couldn't match expected type System.Time.ClockTime' with actual typetime-1.4.0.1:Data.Time.Clock.UTC.UTCTime' In the first argument of clockTimeToEpoch', namelymodct' In the expression: clockTimeToEpoch modct In an equation for `epochtime': epochtime = clockTimeToEpoch modct cabal: Error: some packages failed to install: MissingH-1.2.0.0 failed during the building phase. The exception was: ExitFailure 1

emmanueltouzery commented 11 years ago

I've been trying to make it build, this patch achieves this: https://dl.dropbox.com/u/22600720/missingh_makeitbuild.txt

honestly i didn't test it besides checking that it builds. I THINK it's probably the right fix but who knows. I assume you'll know right away when looking at this patch whether it's the right fix or not.

I based this fix on this here: http://haskell.1045720.n5.nabble.com/getModificationTime-and-directory-1-2-td5717458.html

benmarwick commented 11 years ago

Same problem, windows 7, cygwin...

cabal update cabal install MissingH

[21 of 47] Compiling System.IO.WindowsCompat ( src\System\IO\WindowsCompat.hs, dist\build\System\IO\WindowsCompat.o )

src\System\IO\WindowsCompat.hs:123:41: Couldn't match expected type System.Time.ClockTime' with actual typetime-1.4.0.1:Data.Time.Clock.UTC.UTCTime' In the first argument of clockTimeToEpoch', namelymodct' In the expression: clockTimeToEpoch modct In an equation for `epochtime': epochtime = clockTimeToEpoch modct Failed to install MissingH-1.2.0.1 cabal.exe: Error: some packages failed to install: MissingH-1.2.0.1 failed during the building phase. The exception was: ExitFailure 1

jgoerzen commented 11 years ago

Can you all try the version in the master branch now? I merged a patch that says it fixes this.

zyv commented 11 years ago

Awesome, works for me now! Thanks :)

jgoerzen commented 11 years ago

Thanks, closing.