[darcs-users] GHC 6.6 build error

Eric Kow kowey at darcs.net
Tue Apr 7 18:03:20 UTC 2009


Anybody know how to fix this?  Seems like it should be fairly
straightforward

[ghc] src/Darcs/Patch/Depends.o

src/Darcs/Patch/Depends.hs:188:17:
    Overlapping instances for Monad (Either MissingPatch)
      arising from use of `return'
      at src/Darcs/Patch/Depends.hs:188:17-70
    Matching instances:
      instance (Control.Monad.Error.Error e) => Monad (Either e)
        -- Defined in Control.Monad.Error
      instance (Error e) => Monad (Either e)
        -- Defined in Control.Monad.Error
    In the expression:
        return ([], (NilRL :<: NilRL) :\/: ((concatRL ps2) :<: NilRL))
    In the definition of `gcau':
        gcau NilRL ps2
               = return ([], (NilRL :<: NilRL) :\/: ((concatRL ps2) :<: NilRL))

src/Darcs/Patch/Depends.hs:299:22:
    Overlapping instances for Monad (Either String)
      arising from use of `hopefullyM'
      at src/Darcs/Patch/Depends.hs:299:22-34
    Matching instances:
      instance (Control.Monad.Error.Error e) => Monad (Either e)
        -- Defined in Control.Monad.Error
      instance (Error e) => Monad (Either e)
        -- Defined in Control.Monad.Error
    In the scrutinee of a case expression: hopefullyM hp
    In the expression:
        case hopefullyM hp of
          Right p' -> return p'
          Left e -> Left (MissingPatch (info hp) e)
    In the definition of `ep':
        ep = case hopefullyM hp of
               Right p' -> return p'
               Left e -> Left (MissingPatch (info hp) e)

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090407/2690e4e3/attachment.pgp>


More information about the darcs-users mailing list