Problem using external package from git with stack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem using external package from git with stack

Juan Luis Martty

Hello, I am trying to use binary-serialise-cbor in my project. Since it's not on hackage I followed the docs and added the following to stack.yaml:

packages:
- '.'
- location:
    git: https://github.com/well-typed/binary-serialise-cbor.git
    commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
  extra-dep: true

flags:
  binary-serialise-cbor:
    newtime15: true


And in my .cabal file I have:

  build-depends:       base >= 4.7 && < 5,
                       network-simple,
                       time,
                       binary-serialize-cbor,
                       bytestring


When I do stack build the package is downloaded and built but then I get the following error:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hcopia-0.1.0.0:
    binary-serialize-cbor must match -any, but the stack configuration has no specified version


I attached both files just in case. 

Regards,

Juan


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

hcopia.cabal (1K) Download Attachment
stack.yaml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

Michael Snoyman
It's because you're an American.

Replace binary-serialize-cbor with binary-serialise-cbor in your cabal file :)

On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]> wrote:

Hello, I am trying to use binary-serialise-cbor in my project. Since it's not on hackage I followed the docs and added the following to stack.yaml:

packages:
- '.'
- location:
    commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
  extra-dep: true

flags:
  binary-serialise-cbor:
    newtime15: true


And in my .cabal file I have:

  build-depends:       base >= 4.7 && < 5,
                       network-simple,
                       time,
                       binary-serialize-cbor,
                       bytestring


When I do stack build the package is downloaded and built but then I get the following error:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hcopia-0.1.0.0:
    binary-serialize-cbor must match -any, but the stack configuration has no specified version


I attached both files just in case. 

Regards,

Juan


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

Michael Snoyman
Sorry, I should have said "you're using American spelling."

On Fri, Jan 27, 2017 at 12:08 PM, Michael Snoyman <[hidden email]> wrote:
It's because you're an American.

Replace binary-serialize-cbor with binary-serialise-cbor in your cabal file :)

On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]> wrote:

Hello, I am trying to use binary-serialise-cbor in my project. Since it's not on hackage I followed the docs and added the following to stack.yaml:

packages:
- '.'
- location:
    commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
  extra-dep: true

flags:
  binary-serialise-cbor:
    newtime15: true


And in my .cabal file I have:

  build-depends:       base >= 4.7 && < 5,
                       network-simple,
                       time,
                       binary-serialize-cbor,
                       bytestring


When I do stack build the package is downloaded and built but then I get the following error:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hcopia-0.1.0.0:
    binary-serialize-cbor must match -any, but the stack configuration has no specified version


I attached both files just in case. 

Regards,

Juan


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.



_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

Juan Luis Martty
In reply to this post by Michael Snoyman

Thanks for the quick response, that did it! I feel dumb now, I guess the error message tripped me up

Cheers



From: [hidden email] <[hidden email]> on behalf of Michael Snoyman <[hidden email]>
Sent: Friday, January 27, 2017 7:08 AM
To: Juan Luis Martty
Cc: [hidden email]
Subject: Re: [Haskell-cafe] Problem using external package from git with stack
 
It's because you're an American.

Replace binary-serialize-cbor with binary-serialise-cbor in your cabal file :)

On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]> wrote:

Hello, I am trying to use binary-serialise-cbor in my project. Since it's not on hackage I followed the docs and added the following to stack.yaml:

packages:
- '.'
- location:
    commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
  extra-dep: true

flags:
  binary-serialise-cbor:
    newtime15: true


And in my .cabal file I have:

  build-depends:       base >= 4.7 && < 5,
                       network-simple,
                       time,
                       binary-serialize-cbor,
                       bytestring


When I do stack build the package is downloaded and built but then I get the following error:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hcopia-0.1.0.0:
    binary-serialize-cbor must match -any, but the stack configuration has no specified version


I attached both files just in case. 

Regards,

Juan


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

Michael Snoyman

No problem, I've tripped over those kinds of misspellings enough myself in the past.


On Fri, Jan 27, 2017, 12:21 PM Juan Luis Martty <[hidden email]> wrote:

Thanks for the quick response, that did it! I feel dumb now, I guess the error message tripped me up

Cheers



From: [hidden email] <[hidden email]> on behalf of Michael Snoyman <[hidden email]>
Sent: Friday, January 27, 2017 7:08 AM
To: Juan Luis Martty
Cc: [hidden email]
Subject: Re: [Haskell-cafe] Problem using external package from git with stack
 
It's because you're an American.

Replace binary-serialize-cbor with binary-serialise-cbor in your cabal file :)

On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]> wrote:

Hello, I am trying to use binary-serialise-cbor in my project. Since it's not on hackage I followed the docs and added the following to stack.yaml:

packages:
- '.'
- location:
    commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
  extra-dep: true

flags:
  binary-serialise-cbor:
    newtime15: true


And in my .cabal file I have:

  build-depends:       base >= 4.7 && < 5,
                       network-simple,
                       time,
                       binary-serialize-cbor,
                       bytestring


When I do stack build the package is downloaded and built but then I get the following error:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hcopia-0.1.0.0:
    binary-serialize-cbor must match -any, but the stack configuration has no specified version


I attached both files just in case. 

Regards,

Juan


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

David McBride
I spent an hour one day with this problem when I had haskell-mysql
instead of mysql-haskell.  I can't really fault stack, nor can I think
of any way to make it better.

On Fri, Jan 27, 2017 at 5:22 AM, Michael Snoyman <[hidden email]> wrote:

> No problem, I've tripped over those kinds of misspellings enough myself in
> the past.
>
>
> On Fri, Jan 27, 2017, 12:21 PM Juan Luis Martty <[hidden email]> wrote:
>>
>> Thanks for the quick response, that did it! I feel dumb now, I guess the
>> error message tripped me up
>>
>> Cheers
>>
>>
>> ________________________________
>> From: [hidden email] <[hidden email]> on behalf of
>> Michael Snoyman <[hidden email]>
>> Sent: Friday, January 27, 2017 7:08 AM
>> To: Juan Luis Martty
>> Cc: [hidden email]
>> Subject: Re: [Haskell-cafe] Problem using external package from git with
>> stack
>>
>> It's because you're an American.
>>
>> Replace binary-serialize-cbor with binary-serialise-cbor in your cabal
>> file :)
>>
>> On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]>
>> wrote:
>>>
>>> Hello, I am trying to use binary-serialise-cbor in my project. Since it's
>>> not on hackage I followed the docs and added the following to stack.yaml:
>>>
>>> packages:
>>> - '.'
>>> - location:
>>>     git: https://github.com/well-typed/binary-serialise-cbor.git
>>>     commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
>>>   extra-dep: true
>>>
>>> flags:
>>>   binary-serialise-cbor:
>>>     newtime15: true
>>>
>>>
>>> And in my .cabal file I have:
>>>
>>>   build-depends:       base >= 4.7 && < 5,
>>>                        network-simple,
>>>                        time,
>>>                        binary-serialize-cbor,
>>>                        bytestring
>>>
>>>
>>> When I do stack build the package is downloaded and built but then I get
>>> the following error:
>>>
>>> Error: While constructing the build plan, the following exceptions were
>>> encountered:
>>>
>>> In the dependencies for hcopia-0.1.0.0:
>>>     binary-serialize-cbor must match -any, but the stack configuration
>>> has no specified version
>>>
>>>
>>> I attached both files just in case.
>>>
>>> Regards,
>>>
>>> Juan
>>>
>>>
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> To (un)subscribe, modify options or view archives go to:
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>> Only members subscribed via the mailman list are allowed to post.
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using external package from git with stack

Tomas Carnecky
nor can I think of any way to make it better.

I can. It's easy to detect permutations of words (levenshtein distance) and let the user know. Permutations of words should also be fairly easy to detect, there aren't that many packages in the stackage snapshot. See git for example:

$ git comit -m ... 
git: 'comit' is not a git command. See 'git --help'.

Did you mean this?
    commit



On Fri, Jan 27, 2017 at 2:42 PM David McBride <[hidden email]> wrote:
I spent an hour one day with this problem when I had haskell-mysql
instead of mysql-haskell.  I can't really fault stack, nor can I think
of any way to make it better.

On Fri, Jan 27, 2017 at 5:22 AM, Michael Snoyman <[hidden email]> wrote:
> No problem, I've tripped over those kinds of misspellings enough myself in
> the past.
>
>
> On Fri, Jan 27, 2017, 12:21 PM Juan Luis Martty <[hidden email]> wrote:
>>
>> Thanks for the quick response, that did it! I feel dumb now, I guess the
>> error message tripped me up
>>
>> Cheers
>>
>>
>> ________________________________
>> From: [hidden email] <[hidden email]> on behalf of
>> Michael Snoyman <[hidden email]>
>> Sent: Friday, January 27, 2017 7:08 AM
>> To: Juan Luis Martty
>> Cc: [hidden email]
>> Subject: Re: [Haskell-cafe] Problem using external package from git with
>> stack
>>
>> It's because you're an American.
>>
>> Replace binary-serialize-cbor with binary-serialise-cbor in your cabal
>> file :)
>>
>> On Fri, Jan 27, 2017 at 12:01 PM, Juan Luis Martty <[hidden email]>
>> wrote:
>>>
>>> Hello, I am trying to use binary-serialise-cbor in my project. Since it's
>>> not on hackage I followed the docs and added the following to stack.yaml:
>>>
>>> packages:
>>> - '.'
>>> - location:
>>>     git: https://github.com/well-typed/binary-serialise-cbor.git
>>>     commit: 1e11ea5cc7810d241b2fe1bca0ed435baa4d4371
>>>   extra-dep: true
>>>
>>> flags:
>>>   binary-serialise-cbor:
>>>     newtime15: true
>>>
>>>
>>> And in my .cabal file I have:
>>>
>>>   build-depends:       base >= 4.7 && < 5,
>>>                        network-simple,
>>>                        time,
>>>                        binary-serialize-cbor,
>>>                        bytestring
>>>
>>>
>>> When I do stack build the package is downloaded and built but then I get
>>> the following error:
>>>
>>> Error: While constructing the build plan, the following exceptions were
>>> encountered:
>>>
>>> In the dependencies for hcopia-0.1.0.0:
>>>     binary-serialize-cbor must match -any, but the stack configuration
>>> has no specified version
>>>
>>>
>>> I attached both files just in case.
>>>
>>> Regards,
>>>
>>> Juan
>>>
>>>
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> To (un)subscribe, modify options or view archives go to:
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>> Only members subscribed via the mailman list are allowed to post.
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.