[xmonad] xmonad: xmonad-extras 0.12 fails to build

Brent Yorgey byorgey at gmail.com
Wed Apr 15 17:14:45 UTC 2015


Did you actually open a ticket on the issue tracker?  Or just send a
message to the mailing list? If the latter, there's nothing more you need
to do.

-Brent

On Tue, Apr 14, 2015 at 5:21 PM <davama at gmail.com> wrote:

> Looks like maintainer updated the package.
> Do i have to do anything to close this?
>
> Thanks all for support
> Dave
>
>> Sent from iPhone
>
>
> On Tue, Apr 14, 2015 at 2:24 PM, adam vogt <vogt.adam at gmail.com> wrote:
>
>>  I mean an expression like:
>>
>> > headerLine >> playbackChannels >>= volumes <* eof
>>
>> needs parentheses like:
>>
>> (headerLine >> playbackChannels >>= volumes) <* eof
>>
>> if we were to use the inflxl 4 <*
>>
>> On Tue, Apr 14, 2015 at 8:15 AM, Dave Macias <davama at gmail.com> wrote:
>>
>>> Thank you all for the replies.
>>> I've tried removing it by simply commenting it out, but no change.
>>> Assam, where would the parentheses go? I've fiddled with it but dont
>>> know where. This is the block of code that i assume you are referring to:
>>>  XMonad.Actions.Volume
>>> infixl 1 <*
>>> (<*) :: Monad m => m a -> m b -> m a
>>> pa <* pb = pa >>= \a -> pb >> return a
>>>
>>> Thanks again
>>> Dave
>>>
>>>
>>> On Fri, Apr 10, 2015 at 12:35 AM, adam vogt <vogt.adam at gmail.com> wrote:
>>>
>>>> Hi.
>>>>
>>>> The fixity is different (infixl 1 not infixl 4) so using the one from
>>>> control.applicative means some parentheses have to be added.
>>>>
>>>> Regards,
>>>> Assam
>>>>  On Apr 10, 2015 12:16 AM, "Carlos López-Camey" <c.lopez at kmels.net>
>>>> wrote:
>>>>
>>>>> Hi Dave, by the results of hoogle *, it looks like (<*) is defined in
>>>>> Applicative. I think Applicative is a super class of Monad in newer GHC and
>>>>> is now included in the Prelude. So, I believe it would be safe to just
>>>>> remove it.
>>>>>
>>>>> *
>>>>> https://www.haskell.org/hoogle/?hoogle=Monad+m+%3D%3E+m+a+-%3E+m+b+-%3E+m+a
>>>>>
>>>>> Cheers
>>>>>
>>>>> 2015-04-09 21:55 GMT-06:00 Dave Macias <davama at gmail.com>:
>>>>>
>>>>>> Thanks for responding Brent.
>>>>>>
>>>>>> Not very good at haskell myself.
>>>>>> Im looking at the XMonad.Actions.Volume and there i find:
>>>>>>
>>>>>> infixl 1 <*
>>>>>> (<*) :: Monad m => m a -> m b -> m a
>>>>>> pa <* pb = pa >>= \a -> pb >> return a
>>>>>>
>>>>>> I'm assuming this is what you were referring to for solution (1).
>>>>>> I've  been trying to play with it but i get mixed errors when building, how
>>>>>> do i rename?
>>>>>> Here is the code just in case im looking at it wrong:
>>>>>>
>>>>>> https://hackage.haskell.org/package/xmonad-extras-0.12/src/XMonad/Actions/Volume.hs
>>>>>>
>>>>>> I also plan to email the maintainer, but i would like to have this
>>>>>> work for educational purposes.
>>>>>>
>>>>>> Thanks,
>>>>>> Dave
>>>>>>
>>>>>> On Thu, Apr 9, 2015 at 10:04 AM, Brent Yorgey <byorgey at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> It looks like XMonad.Actions.Volume defines an operator (<*), but
>>>>>>> as of base-4.8 an operator with that name has been added to the Prelude.
>>>>>>> The fix would be to either (1) rename the operator in
>>>>>>> XMonad.Actions.Volume, or (2) hide the operator from Prelude and tell
>>>>>>> everyone who wants to use XMonad.Actions.Volume.(<*) that they need to hide
>>>>>>> it from Prelude too.
>>>>>>>
>>>>>>>  xmonad-extras is not officially a part of the xmonad project; you
>>>>>>> should contact the maintainers listed at
>>>>>>> http://hackage.haskell.org/package/xmonad-extras .
>>>>>>>
>>>>>>> -Brent
>>>>>>>
>>>>>>> On Mon, Apr 6, 2015 at 11:45 PM Dave Macias <davama at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> This is my first time posting here so i hope im doing this right.
>>>>>>>> Just updated ghc to 7.10.1 and had to rebuild xmonad,
>>>>>>>> xmonad-contrib, and xmobar.
>>>>>>>> I also use xmonad-extras but it failed during the build. I tried
>>>>>>>> using cabal and also from source but both give same output:
>>>>>>>>
>>>>>>>> $ cabal install xmonad-extras
>>>>>>>>
>>>>>>>> Resolving dependencies...
>>>>>>>> Configuring xmonad-extras-0.12...
>>>>>>>> Building xmonad-extras-0.12...
>>>>>>>> Failed to install xmonad-extras-0.12
>>>>>>>> Build log ( /home/dvmacias/.cabal/logs/xmonad-extras-0.12.log ):
>>>>>>>> Configuring xmonad-extras-0.12...
>>>>>>>> Building xmonad-extras-0.12...
>>>>>>>> Preprocessing library xmonad-extras-0.12...
>>>>>>>> [1 of 2] Compiling XMonad.Util.WindowPropertiesRE (
>>>>>>>> XMonad/Util/WindowPropertiesRE.hs,
>>>>>>>> dist/build/XMonad/Util/WindowPropertiesRE.o )
>>>>>>>> [2 of 2] Compiling XMonad.Actions.Volume (
>>>>>>>> XMonad/Actions/Volume.hs, dist/build/XMonad/Actions/Volume.o )
>>>>>>>>
>>>>>>>> XMonad/Actions/Volume.hs:173:23:
>>>>>>>>     Ambiguous occurrence ‘<*’
>>>>>>>>     It could refer to either ‘XMonad.Actions.Volume.<*’,
>>>>>>>>                              defined at
>>>>>>>> XMonad/Actions/Volume.hs:66:4
>>>>>>>>                           or ‘Prelude.<*’,
>>>>>>>>                              imported from ‘Prelude’ at
>>>>>>>> XMonad/Actions/Volume.hs:15:8-28
>>>>>>>>                              (and originally defined in ‘GHC.Base’)
>>>>>>>>
>>>>>>>> XMonad/Actions/Volume.hs:173:43:
>>>>>>>>     Ambiguous occurrence ‘<*’
>>>>>>>>     It could refer to either ‘XMonad.Actions.Volume.<*’,
>>>>>>>>                              defined at
>>>>>>>> XMonad/Actions/Volume.hs:66:4
>>>>>>>>                           or ‘Prelude.<*’,
>>>>>>>>                              imported from ‘Prelude’ at
>>>>>>>> XMonad/Actions/Volume.hs:15:8-28
>>>>>>>>                              (and originally defined in ‘GHC.Base’)
>>>>>>>>
>>>>>>>> XMonad/Actions/Volume.hs:200:62:
>>>>>>>>     Ambiguous occurrence ‘<*’
>>>>>>>>     It could refer to either ‘XMonad.Actions.Volume.<*’,
>>>>>>>>                              defined at
>>>>>>>> XMonad/Actions/Volume.hs:66:4
>>>>>>>>                           or ‘Prelude.<*’,
>>>>>>>>                              imported from ‘Prelude’ at
>>>>>>>> XMonad/Actions/Volume.hs:15:8-28
>>>>>>>>                              (and originally defined in ‘GHC.Base’)
>>>>>>>>
>>>>>>>> XMonad/Actions/Volume.hs:215:32:
>>>>>>>>     Ambiguous occurrence ‘<*’
>>>>>>>>     It could refer to either ‘XMonad.Actions.Volume.<*’,
>>>>>>>>                              defined at
>>>>>>>> XMonad/Actions/Volume.hs:66:4
>>>>>>>>                           or ‘Prelude.<*’,
>>>>>>>>                              imported from ‘Prelude’ at
>>>>>>>> XMonad/Actions/Volume.hs:15:8-28
>>>>>>>>                              (and originally defined in ‘GHC.Base’)
>>>>>>>>
>>>>>>>> XMonad/Actions/Volume.hs:225:58:
>>>>>>>>     Ambiguous occurrence ‘<*’
>>>>>>>>
>>>>>>>>     It could refer to either ‘XMonad.Actions.Volume.<*’,
>>>>>>>>                              defined at
>>>>>>>> XMonad/Actions/Volume.hs:66:4
>>>>>>>>                           or ‘Prelude.<*’,
>>>>>>>>                              imported from ‘Prelude’ at
>>>>>>>> XMonad/Actions/Volume.hs:15:8-28
>>>>>>>>                              (and originally defined in ‘GHC.Base’)
>>>>>>>> cabal: Error: some packages failed to install:
>>>>>>>> xmonad-extras-0.12 failed during the building phase. The exception
>>>>>>>> was:
>>>>>>>> ExitFailure 1
>>>>>>>>
>>>>>>>>
>>>>>>>> I got to look at the log but it just has what i pasted above.
>>>>>>>> System is Arch 3.19.2-1-ARCH
>>>>>>>>
>>>>>>>> Any input is appreciated.
>>>>>>>> Thanks
>>>>>>>> dave
>>>>>>>>  _______________________________________________
>>>>>>>> xmonad mailing list
>>>>>>>> xmonad at haskell.org
>>>>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> xmonad mailing list
>>>>>> xmonad at haskell.org
>>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> xmonad mailing list
>>>>> xmonad at haskell.org
>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>>>>>
>>>>>
>>>
>>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20150415/75815a71/attachment.html>


More information about the xmonad mailing list