Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  stack issues (frantisek kocun)
   2. Re:  stack issues (frantisek kocun)
   3. Re:  stack issues (frantisek kocun)
   4. Re:  stack issues (Michael Snoyman)


----------------------------------------------------------------------

Message: 1
Date: Fri, 8 Jan 2016 00:16:52 -0500
From: frantisek kocun <frantisek.ko...@gmail.com>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] stack issues
Message-ID:
        <CAMcUN736=9m09zg0nfgte2wqfryadkbtssj20u6+s_2jdla...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I found this

cabal install gtk -fhave-quartz-gtk --reinstall

but it does not help me when I run stack build afterwards..

On Thu, Jan 7, 2016 at 11:13 PM, frantisek kocun <frantisek.ko...@gmail.com>
wrote:

> Found that gtk was not installed. So I did
>   brew install gtk
>
> but I got different problem
>
> [ 22 of 209] Compiling Graphics.UI.Gtk.Embedding.Plug (
> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.hs,
> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.o
> )
>
>
>
>     Graphics/UI/Gtk/Embedding/Plug.chs:120:6:
>
>         Couldn't match expected type ?Ptr ()?
>
>                     with actual type ?Maybe DrawWindow?
>
>         In the first argument of ?gtk_plug_new?, namely
>
>           ?(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>
>         In the second argument of ?($)?, namely
>
>           ?gtk_plug_new
>
>              (fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>
> On Thu, Jan 7, 2016 at 10:46 PM, frantisek kocun <
> frantisek.ko...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm new to cabal/stack. I want to use "stack build" to build my project.
>>
>> I can not use latest gkt >= 0.14.2 because of
>>    setup: The pkg-config package 'cairo' version >=1.2.0 is required but
>> it could
>>
>> Neither can I now use older version gtk >=0.12.0 && < 0.13
>>
>> While constructing the BuildPlan the following exceptions were
>> encountered:
>>
>> --  Failure when adding dependencies:
>>
>>       gtk: needed (>=0.12.0 && <0.13), 0.14.2 found (latest version
>> available)
>>
>>     needed for package: ships-0.1.0.0
>>
>>
>>
>> What can i do? Thanks
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160108/7693def7/attachment-0001.html>

------------------------------

Message: 2
Date: Fri, 8 Jan 2016 00:43:19 -0500
From: frantisek kocun <frantisek.ko...@gmail.com>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] stack issues
Message-ID:
        <CAMcUN71Qrh=sxfo08hlkcyj+q-gros2xnwb8im3acqmyzmy...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

This works for me

$ stack build gtk --flag gtk:have-quartz-gtk

but I sitll need to specify gtk also in cabal file (having it only in
stack.yaml do not find the package)

but then I get

$ stack build

gtk-0.13.9: unregistering (flags changed from ["-fhave-quartz-gtk"] to [])

On Fri, Jan 8, 2016 at 12:16 AM, frantisek kocun <frantisek.ko...@gmail.com>
wrote:

> I found this
>
> cabal install gtk -fhave-quartz-gtk --reinstall
>
> but it does not help me when I run stack build afterwards..
>
> On Thu, Jan 7, 2016 at 11:13 PM, frantisek kocun <
> frantisek.ko...@gmail.com> wrote:
>
>> Found that gtk was not installed. So I did
>>   brew install gtk
>>
>> but I got different problem
>>
>> [ 22 of 209] Compiling Graphics.UI.Gtk.Embedding.Plug (
>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.hs,
>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.o
>> )
>>
>>
>>
>>     Graphics/UI/Gtk/Embedding/Plug.chs:120:6:
>>
>>         Couldn't match expected type ?Ptr ()?
>>
>>                     with actual type ?Maybe DrawWindow?
>>
>>         In the first argument of ?gtk_plug_new?, namely
>>
>>           ?(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>>
>>         In the second argument of ?($)?, namely
>>
>>           ?gtk_plug_new
>>
>>              (fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>>
>> On Thu, Jan 7, 2016 at 10:46 PM, frantisek kocun <
>> frantisek.ko...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm new to cabal/stack. I want to use "stack build" to build my project.
>>>
>>> I can not use latest gkt >= 0.14.2 because of
>>>    setup: The pkg-config package 'cairo' version >=1.2.0 is required but
>>> it could
>>>
>>> Neither can I now use older version gtk >=0.12.0 && < 0.13
>>>
>>> While constructing the BuildPlan the following exceptions were
>>> encountered:
>>>
>>> --  Failure when adding dependencies:
>>>
>>>       gtk: needed (>=0.12.0 && <0.13), 0.14.2 found (latest version
>>> available)
>>>
>>>     needed for package: ships-0.1.0.0
>>>
>>>
>>>
>>> What can i do? Thanks
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160108/ea23ef35/attachment-0001.html>

------------------------------

Message: 3
Date: Fri, 8 Jan 2016 00:45:24 -0500
From: frantisek kocun <frantisek.ko...@gmail.com>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] stack issues
Message-ID:
        <CAMcUN732GkfjBqQCCYvCB7gBVubK=iwrqp48er3wp9kqvhb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Is there a way to specify these flags in cabal file? I'm sure this will
resolve my issue


On Fri, Jan 8, 2016 at 12:43 AM, frantisek kocun <frantisek.ko...@gmail.com>
wrote:

> This works for me
>
> $ stack build gtk --flag gtk:have-quartz-gtk
>
> but I sitll need to specify gtk also in cabal file (having it only in
> stack.yaml do not find the package)
>
> but then I get
>
> $ stack build
>
> gtk-0.13.9: unregistering (flags changed from ["-fhave-quartz-gtk"] to [])
>
> On Fri, Jan 8, 2016 at 12:16 AM, frantisek kocun <
> frantisek.ko...@gmail.com> wrote:
>
>> I found this
>>
>> cabal install gtk -fhave-quartz-gtk --reinstall
>>
>> but it does not help me when I run stack build afterwards..
>>
>> On Thu, Jan 7, 2016 at 11:13 PM, frantisek kocun <
>> frantisek.ko...@gmail.com> wrote:
>>
>>> Found that gtk was not installed. So I did
>>>   brew install gtk
>>>
>>> but I got different problem
>>>
>>> [ 22 of 209] Compiling Graphics.UI.Gtk.Embedding.Plug (
>>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.hs,
>>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.o
>>> )
>>>
>>>
>>>
>>>     Graphics/UI/Gtk/Embedding/Plug.chs:120:6:
>>>
>>>         Couldn't match expected type ?Ptr ()?
>>>
>>>                     with actual type ?Maybe DrawWindow?
>>>
>>>         In the first argument of ?gtk_plug_new?, namely
>>>
>>>           ?(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>>>
>>>         In the second argument of ?($)?, namely
>>>
>>>           ?gtk_plug_new
>>>
>>>              (fromNativeWindowId (fromMaybe nativeWindowIdNone
>>> socketId))?
>>>
>>> On Thu, Jan 7, 2016 at 10:46 PM, frantisek kocun <
>>> frantisek.ko...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm new to cabal/stack. I want to use "stack build" to build my project.
>>>>
>>>> I can not use latest gkt >= 0.14.2 because of
>>>>    setup: The pkg-config package 'cairo' version >=1.2.0 is required
>>>> but it could
>>>>
>>>> Neither can I now use older version gtk >=0.12.0 && < 0.13
>>>>
>>>> While constructing the BuildPlan the following exceptions were
>>>> encountered:
>>>>
>>>> --  Failure when adding dependencies:
>>>>
>>>>       gtk: needed (>=0.12.0 && <0.13), 0.14.2 found (latest version
>>>> available)
>>>>
>>>>     needed for package: ships-0.1.0.0
>>>>
>>>>
>>>>
>>>> What can i do? Thanks
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160108/3deda49c/attachment-0001.html>

------------------------------

Message: 4
Date: Fri, 8 Jan 2016 08:55:00 +0200
From: Michael Snoyman <mich...@snoyman.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] stack issues
Message-ID:
        <CAKA2Jg+GXCYqvMNyYyYC=pbhrurqjewlwgpxakn4bcnb92z...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You need to specify the flag in the stack.yaml file, via something like:

flags:
  gtk:
    have-quartz-gtk: true

On Fri, Jan 8, 2016 at 7:45 AM, frantisek kocun <frantisek.ko...@gmail.com>
wrote:

> Is there a way to specify these flags in cabal file? I'm sure this will
> resolve my issue
>
>
> On Fri, Jan 8, 2016 at 12:43 AM, frantisek kocun <
> frantisek.ko...@gmail.com> wrote:
>
>> This works for me
>>
>> $ stack build gtk --flag gtk:have-quartz-gtk
>>
>> but I sitll need to specify gtk also in cabal file (having it only in
>> stack.yaml do not find the package)
>>
>> but then I get
>>
>> $ stack build
>>
>> gtk-0.13.9: unregistering (flags changed from ["-fhave-quartz-gtk"] to [])
>>
>> On Fri, Jan 8, 2016 at 12:16 AM, frantisek kocun <
>> frantisek.ko...@gmail.com> wrote:
>>
>>> I found this
>>>
>>> cabal install gtk -fhave-quartz-gtk --reinstall
>>>
>>> but it does not help me when I run stack build afterwards..
>>>
>>> On Thu, Jan 7, 2016 at 11:13 PM, frantisek kocun <
>>> frantisek.ko...@gmail.com> wrote:
>>>
>>>> Found that gtk was not installed. So I did
>>>>   brew install gtk
>>>>
>>>> but I got different problem
>>>>
>>>> [ 22 of 209] Compiling Graphics.UI.Gtk.Embedding.Plug (
>>>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.hs,
>>>> .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Graphics/UI/Gtk/Embedding/Plug.o
>>>> )
>>>>
>>>>
>>>>
>>>>     Graphics/UI/Gtk/Embedding/Plug.chs:120:6:
>>>>
>>>>         Couldn't match expected type ?Ptr ()?
>>>>
>>>>                     with actual type ?Maybe DrawWindow?
>>>>
>>>>         In the first argument of ?gtk_plug_new?, namely
>>>>
>>>>           ?(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))?
>>>>
>>>>         In the second argument of ?($)?, namely
>>>>
>>>>           ?gtk_plug_new
>>>>
>>>>              (fromNativeWindowId (fromMaybe nativeWindowIdNone
>>>> socketId))?
>>>>
>>>> On Thu, Jan 7, 2016 at 10:46 PM, frantisek kocun <
>>>> frantisek.ko...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm new to cabal/stack. I want to use "stack build" to build my
>>>>> project.
>>>>>
>>>>> I can not use latest gkt >= 0.14.2 because of
>>>>>    setup: The pkg-config package 'cairo' version >=1.2.0 is required
>>>>> but it could
>>>>>
>>>>> Neither can I now use older version gtk >=0.12.0 && < 0.13
>>>>>
>>>>> While constructing the BuildPlan the following exceptions were
>>>>> encountered:
>>>>>
>>>>> --  Failure when adding dependencies:
>>>>>
>>>>>       gtk: needed (>=0.12.0 && <0.13), 0.14.2 found (latest version
>>>>> available)
>>>>>
>>>>>     needed for package: ships-0.1.0.0
>>>>>
>>>>>
>>>>>
>>>>> What can i do? Thanks
>>>>>
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160108/e21559cd/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 91, Issue 13
*****************************************

Reply via email to