haskell-hvr / missingh

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

build on windows fails #36

Closed pjljvandelaar closed 5 years ago

pjljvandelaar commented 8 years ago

When installing the latest version of MissingH using cabal on windows, I get

c:\TorXakisSandbox\1897_ImproveDesign\torxakis2>cabal install MissingH
Resolving dependencies...
Configuring MissingH-1.4.0.1...
Building MissingH-1.4.0.1...
Preprocessing library MissingH-1.4.0.1...
[ 1 of 45] Compiling System.Console.GetOpt.Utils ( src\System\Console\GetOpt\Utils.hs, dist\
build\System\Console\GetOpt\Utils.o )
[ 2 of 45] Compiling System.Debian    ( src\System\Debian.hs, dist\build\System\Debian.o )
[ 3 of 45] Compiling System.Posix.Consts ( src\System\Posix\Consts.hs, dist\build\System\Pos
ix\Consts.o )
[ 4 of 45] Compiling System.IO.StatCompat ( src\System\IO\StatCompat.hs, dist\build\System\I
O\StatCompat.o )
[ 5 of 45] Compiling Data.Compression.Inflate ( src\Data\Compression\Inflate.hs, dist\build\
Data\Compression\Inflate.o )
[ 6 of 45] Compiling Data.Hash.MD5.Zord64_HARD ( src\Data\Hash\MD5\Zord64_HARD.lhs, dist\bui
ld\Data\Hash\MD5\Zord64_HARD.o )

src\Data\Hash\MD5\Zord64_HARD.lhs:17:12: Warning:
    No explicit method or default declaration for `*'
    In the instance declaration for `Num Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:17:12: Warning:
    No explicit method or default declaration for `abs'
    In the instance declaration for `Num Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:17:12: Warning:
    No explicit method or default declaration for `signum'
    In the instance declaration for `Num Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `xor'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `bit'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `testBit'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `bitSize'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `isSigned'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:26:12: Warning:
    No explicit method or default declaration for `popCount'
    In the instance declaration for `Bits Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:43:12: Warning:
    No explicit method or default declaration for `quotRem'
    In the instance declaration for `Integral Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:46:12: Warning:
    No explicit method or default declaration for `toRational'
    In the instance declaration for `Real Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:47:12: Warning:
    No explicit method or default declaration for `toEnum'
    In the instance declaration for `Enum Zord64'

src\Data\Hash\MD5\Zord64_HARD.lhs:47:12: Warning:
    No explicit method or default declaration for `fromEnum'
    In the instance declaration for `Enum Zord64'
[ 7 of 45] Compiling Data.Hash.MD5    ( src\Data\Hash\MD5.lhs, dist\build\Data\Hash\MD5.o )

src\Data\Hash\MD5.lhs:114:12: Warning:
    No explicit method or default declaration for `*'
    In the instance declaration for `Num ABCD'

src\Data\Hash\MD5.lhs:114:12: Warning:
    No explicit method or default declaration for `abs'
    In the instance declaration for `Num ABCD'

src\Data\Hash\MD5.lhs:114:12: Warning:
    No explicit method or default declaration for `signum'
    In the instance declaration for `Num ABCD'

src\Data\Hash\MD5.lhs:114:12: Warning:
    No explicit method or default declaration for `fromInteger'
    In the instance declaration for `Num ABCD'
[ 8 of 45] Compiling Data.Hash.CRC32.GZip ( src\Data\Hash\CRC32\GZip.hs, dist\build\Data\Has
h\CRC32\GZip.o )
[ 9 of 45] Compiling Data.Bits.Utils  ( src\Data\Bits\Utils.hs, dist\build\Data\Bits\Utils.o
 )
[10 of 45] Compiling System.FileArchive.GZip ( src\System\FileArchive\GZip.hs, dist\build\Sy
stem\FileArchive\GZip.o )
[11 of 45] Compiling Data.Tuple.Utils ( src\Data\Tuple\Utils.hs, dist\build\Data\Tuple\Utils
.o )
[12 of 45] Compiling Data.Maybe.Utils ( src\Data\Maybe\Utils.hs, dist\build\Data\Maybe\Utils
.o )
[13 of 45] Compiling Data.Either.Utils ( src\Data\Either\Utils.hs, dist\build\Data\Either\Ut
ils.o )
[14 of 45] Compiling Network.Utils    ( src\Network\Utils.hs, dist\build\Network\Utils.o )
[15 of 45] Compiling Network.SocketServer ( src\Network\SocketServer.hs, dist\build\Network\
SocketServer.o )
[16 of 45] Compiling System.Path.NameManip ( src\System\Path\NameManip.hs, dist\build\System
\Path\NameManip.o )
[17 of 45] Compiling Data.Quantity    ( src\Data\Quantity.hs, dist\build\Data\Quantity.o )
[18 of 45] Compiling System.Time.Utils ( src\System\Time\Utils.hs, dist\build\System\Time\Ut
ils.o )
[19 of 45] Compiling System.IO.WindowsCompat ( src\System\IO\WindowsCompat.hs, dist\build\Sy
stem\IO\WindowsCompat.o )

src\System\IO\WindowsCompat.hs:60:1:
    Data.Time: Can't be safely imported! The module itself isn't safe.

src\System\IO\WindowsCompat.hs:61:1:
    Data.Time.Clock.POSIX: Can't be safely imported!
    The module itself isn't safe.
Failed to install MissingH-1.4.0.1
cabal: Error: some packages failed to install:
MissingH-1.4.0.1 failed during the building phase. The exception was:
ExitFailure 1

I have no problems with older versions of MissingH

c:\TorXakisSandbox\1897_ImproveDesign\torxakis2>cabal info MissingH
* MissingH         (library)
    Synopsis:      Large utility library
    Versions available: 0.18.2, 0.18.6, 1.1.1.0, 1.2.0.2, 1.2.1.0, 1.3.0.1,
                        1.3.0.2, 1.4.0.0, 1.4.0.1 (and 13 others)
    Versions installed: 1.3.0.2
    Homepage:      http://software.complete.org/missingh
    Bug reports:   [ Not specified ]
    Description:   MissingH is a library of all sorts of utility functions for
                   Haskell programmers. It is written in pure Haskell and thus
                   should be extremely portable and easy to use.
    Category:      Unclassified
    License:       BSD3
    Author:        John Goerzen
    Maintainer:    John Goerzen <jgoerzen@complete.org>
    Source repo:   [ Not specified ]
    Dependencies:  network -any, parsec -any, base -any, mtl -any, HUnit -any,
                   regex-compat -any, filepath -any, hslogger -any, base >=4.5,
                   base <5, directory -any, random -any, process -any,
                   old-time -any, containers -any, old-locale -any, array -any,
                   time -any, unix -any, unix -any, HUnit -any, QuickCheck -any,
                   testpack -any, time -any, array -any, old-locale -any,
                   containers -any, old-time -any, process -any, random -any,
                   directory -any, base <5, base >=4.5, hslogger -any,
                   filepath -any, errorcall-eq-instance -any, regex-compat -any,
                   HUnit -any, mtl -any, base -any, parsec -any, network -any
    Documentation: [ Not installed ]
    Cached:        Yes
    Modules:
        Control.Concurrent.Thread.Utils
        Data.BinPacking
        Data.Bits.Utils
        Data.CSV
        Data.Compression.Inflate
        Data.Either.Utils
        Data.Hash.CRC32.GZip
        Data.Hash.CRC32.Posix
        Data.Hash.MD5
        Data.Hash.MD5.Zord64_HARD
        Data.List.Utils
        Data.MIME.Types
        Data.Map.Utils
        Data.Maybe.Utils
        Data.Progress.Meter
        Data.Progress.Tracker
        Data.Quantity
        Data.String.Utils
        Data.Tuple.Utils
        Network.Email.Mailbox
        Network.Email.Sendmail
        Network.SocketServer
        Network.Utils
        System.Cmd.Utils
        System.Console.GetOpt.Utils
        System.Daemon
        System.Debian
        System.Debian.ControlParser
        System.FileArchive.GZip
        System.IO.Binary
        System.IO.HVFS
        System.IO.HVFS.Combinators
        System.IO.HVFS.InstanceHelpers
        System.IO.HVFS.Utils
        System.IO.HVIO
        System.IO.PlafCompat
        System.IO.StatCompat
        System.IO.Utils
        System.IO.WindowsCompat
        System.Path
        System.Path.Glob
        System.Path.NameManip
        System.Path.WildMatch
        System.Posix.Consts
        System.Time.ParseDate
        System.Time.Utils
        Text.ParserCombinators.Parsec.Utils
hvr commented 5 years ago

I can't reproduce this with the most recent release and GHC 7.10/8.0/8.2/8.4/8.6; therefore I assume this has been resolved