[xmonad] is there a way to build xmonad-contrib 0.9.2 on a system with ghc 7.4.1?

Lara Michaels laramichaels1978 at yahoo.com
Thu Jun 28 21:27:42 CEST 2012


Thank you for your help with this, too. Now I get another error in a different file where simply appending Eq b' doesn't do the trick:


[170 of 180] Compiling XMonad.Actions.GridSelect ( XMonad/Actions/GridSelect.hs, dist/build/XMonad/Actions/GridSelect.o )

XMonad/Actions/GridSelect.hs:227:12:
    Could not deduce (Eq b') arising from a use of `nub'
    from the context (Enum b', Num b')
      bound by the type signature for
                 diamondLayer :: (Enum b', Num b') => b' -> [(b', b')]
      at XMonad/Actions/GridSelect.hs:(226,1)-(229,35)
    Possible fix:
      add (Eq b') to the context of
        the type signature for
          diamondLayer :: (Enum b', Num b') => b' -> [(b', b')]
    In the expression: nub
    In the expression:
      nub
      $ ul
        ++
          (map (negate *** id) ul)
          ++ (map (negate *** negate) ul) ++ (map (id *** negate) ul)
    In the expression:
      let ul = [... | x <- ...]
      in
        nub
        $ ul
          ++
            (map (negate *** id) ul)
            ++ (map (negate *** negate) ul) ++ (map (id *** negate) ul)



Following your earlier advice, I have tried replacing the line

          diamondLayer :: (Enum b', Num b') => b' -> [(b', b')]

with both


          diamondLayer :: (Enum b', Num b', Eq b') => b' -> [(b', b')]

as well as

          diamondLayer :: (Enum b', (Num b', Eq b')) => b' -> [(b', b')]

but the compiler was unhappy about it in both occasions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120628/a765fbe3/attachment.htm>


More information about the xmonad mailing list