Send Beginners mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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


Today's Topics:

   1.  -fglasgow-exts in .cabal (Imants Cekusins)
   2. Re:  -fglasgow-exts in .cabal
      (Sumit Sahrawat, Maths & Computing, IIT (BHU))
   3. Re:  -fglasgow-exts in .cabal (Imants Cekusins)
   4. Re:  -fglasgow-exts in .cabal
      (Sumit Sahrawat, Maths & Computing, IIT (BHU))
   5. Re:  -fglasgow-exts in .cabal (Imants Cekusins)
   6.  cabal install snap-server-0.9.5.1: At least the following
      dependencies are missing: attoparsec >=0.10 && <0.13 &&
      ==0.13.0.1 (Stanislaw Findeisen)


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

Message: 1
Date: Thu, 9 Jul 2015 16:32:52 +0200
From: Imants Cekusins <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] -fglasgow-exts in .cabal
Message-ID:
        <CAP1qinZUS9k85UhxzU=-_n3drjpt4yxoxilpsp0vyjrc_-n...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

How to specify defaultExtensions in cabal (1.22) file?

e.g.
 -fglasgow-exts or
 TypeSynonymInstances

?


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

Message: 2
Date: Thu, 9 Jul 2015 21:05:43 +0530
From: "Sumit Sahrawat, Maths & Computing, IIT (BHU)"
        <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] -fglasgow-exts in .cabal
Message-ID:
        <CAJbEW8Oxmfeznum76=OdYt=Q=e8+oyspd4ryrvnxyn5km3y...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

https://www.haskell.org/cabal/users-guide/developing-packages.html might
help.

On 9 July 2015 at 20:02, Imants Cekusins <[email protected]> wrote:

> How to specify defaultExtensions in cabal (1.22) file?
>
> e.g.
>  -fglasgow-exts or
>  TypeSynonymInstances
>
> ?
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>



-- 
Regards

Sumit Sahrawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150709/84744249/attachment-0001.html>

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

Message: 3
Date: Thu, 9 Jul 2015 18:02:34 +0200
From: Imants Cekusins <[email protected]>
To: [email protected],  The Haskell-Beginners Mailing
        List - Discussion of primarily beginner-level topics related to
        Haskell <[email protected]>
Subject: Re: [Haskell-beginners] -fglasgow-exts in .cabal
Message-ID:
        <CAP1qinamy6HOg7bcdc1ju7kUPwz6fEOH7A8wH6nv2T4D=w8...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Thank you Sumit.

This is how far I got:

if I put this right after hs-source-dirs:

default-extensions:  FlexibleInstances

, it works: ghc asks for MultiParamTypeClasses option.

However if I add FlexibleInstances, MultiParamTypeClasses
- either separated with comma or on the next line, the compiler parses
.cabal and tries to build however prompts for FlexibleInstances again.

How would I specify >1 option?


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

Message: 4
Date: Thu, 9 Jul 2015 21:34:51 +0530
From: "Sumit Sahrawat, Maths & Computing, IIT (BHU)"
        <[email protected]>
To: Imants Cekusins <[email protected]>
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] -fglasgow-exts in .cabal
Message-ID:
        <CAJbEW8Me1UW1YqmcMNVW0KM=hhfum+2_onddegbxqw-iws1...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I used to take a look at cabal files from projects that I've used and found
to work. For example, IHaskell uses a lot of extensions [1].

[1]:
https://github.com/gibiansky/IHaskell/blob/master/ihaskell.cabal#L122-L126

On 9 July 2015 at 21:32, Imants Cekusins <[email protected]> wrote:

> Thank you Sumit.
>
> This is how far I got:
>
> if I put this right after hs-source-dirs:
>
> default-extensions:  FlexibleInstances
>
> , it works: ghc asks for MultiParamTypeClasses option.
>
> However if I add FlexibleInstances, MultiParamTypeClasses
> - either separated with comma or on the next line, the compiler parses
> .cabal and tries to build however prompts for FlexibleInstances again.
>
> How would I specify >1 option?
>



-- 
Regards

Sumit Sahrawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150709/d3664b69/attachment-0001.html>

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

Message: 5
Date: Thu, 9 Jul 2015 18:18:13 +0200
From: Imants Cekusins <[email protected]>
To: [email protected]
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] -fglasgow-exts in .cabal
Message-ID:
        <CAP1qinaZoD=w1ka4ov5y2qjjx59vd-s9+mq+ethhk2vuynx...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Cheers Sumit. it worked:

default-extensions:   FlexibleInstances
                      MultiParamTypeClasses
                      TypeSynonymInstances

needed to run cabal clean, then cabal build.

this needs to be specified in both library & test-suite spec section


hope this helps someone.


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

Message: 6
Date: Fri, 10 Jul 2015 13:49:24 +0200
From: Stanislaw Findeisen <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] cabal install snap-server-0.9.5.1: At
        least the following dependencies are missing: attoparsec >=0.10 &&
        <0.13 && ==0.13.0.1
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi

Could anyone explain this to me, please?

$ cabal install snap-server-0.9.5.1
Resolving dependencies...
Configuring snap-server-0.9.5.1...
cabal: At least the following dependencies are missing:
attoparsec >=0.10 && <0.13 && ==0.13.0.1
cabal: Error: some packages failed to install:
snap-server-0.9.5.1 failed during the configure step. The exception was:
ExitFailure 1

Where does this unsatisfiable dependency come from? snap-server-0.9.5.1
seems to require just attoparsec (>=0.10 && <0.14):
http://hackage.haskell.org/package/snap-server-0.9.5.1 . And attoparsec
0.13.0.1 is already installed:

$ cabal list --installed attoparsec
* attoparsec
    Synopsis: Fast combinator parsing for bytestrings and text
    Default available version: 0.13.0.1
    Installed versions: 0.13.0.1
    Homepage: https://github.com/bos/attoparsec
    License:  BSD3

* attoparsec-enumerator
    Synopsis: Pass input from an enumerator to an Attoparsec parser.
    Default available version: 0.3.4
    Installed versions: 0.3.4
    Homepage: https://john-millikin.com/software/attoparsec-enumerator/
    License:  MIT

I am trying to install hakyll 4.6.*, and snap-server seems to be one of
the requirements. Hakyll 4.6.* is an old version but AFAIR I need that
due to conflicting versions of containers.

Thanks!

-- 
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150710/6795121e/attachment-0001.sig>

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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 85, Issue 3
****************************************

Reply via email to