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. CANCEL ME PLEASE (Letizia Galli)
2. Re: cabal problem (Roelof Wobben)
3. Re: cabal problem (Roelof Wobben)
4. Questions about optparse-applicative (Mike Meyer)
5. Re: cabal problem (Carsten K?nig)
----------------------------------------------------------------------
Message: 1
Date: Thu, 14 May 2015 23:32:34 +0200
From: Letizia Galli <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] CANCEL ME PLEASE
Message-ID:
<cae02c-4vaz_chpr3flrympg8alkvetzeuqahnmnxupyzcxx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
--
Letizia Galli
0039 328 6917393
www.letiziagalli.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150514/e48cfbed/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 15 May 2015 09:08:25 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] cabal problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150515/6d8355d2/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 15 May 2015 09:10:15 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] cabal problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150515/fc720410/attachment-0001.html>
------------------------------
Message: 4
Date: Fri, 15 May 2015 02:19:06 -0500
From: Mike Meyer <[email protected]>
To: beginners <[email protected]>
Subject: [Haskell-beginners] Questions about optparse-applicative
Message-ID:
<CAD=7u2bbrpoqp-nwym7har3oateakbwadjzz1+dhrxwmmon...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
In trying to convert eddie (http://hackage.haskell.org/package/eddie) from
CmdArgs optparse-applicative, I've run into a couple of problems.
First question: I have options whose legality depends on other options: two
that can't be specified together, and a couple that require one of the two,
among other things. Is there some way to specify such constraints when
building the parser? Maybe a way to print just the usage message if I check
these myself? Maybe a better approach?
It looks like if I replace main in test/Example/Hello.hs with:
main = handleParseResult . Failure $ parserFailure (prefs idm) (info
sample briefDesc) ShowHelpText mempty
I should just get the Usage message output, but instead I get the full help
text.
Second, and possibly related, it's not at all clear what fullDesc does in
that example program. In particular, removing it doesn't seem to change the
program behavior. Is there some behavior I've missed, or is this an error?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150515/956f47ee/attachment-0001.html>
------------------------------
Message: 5
Date: Fri, 15 May 2015 09:31:22 +0200
From: Carsten K?nig <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] cabal problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"
You most likely updated GHC or something and so you have to reinstall
all the packages you get errors for first:
cabal install QuckCheck -reinstall --force-reinstalls
Am 15.05.2015 um 09:10 schrieb Roelof Wobben:
> Another problem.
>
> I now see this output :
>
> Preprocessing library digits-0.2...
>
> [1 of 1] Compiling Data.Digits ( src/Data/Digits.hs,
> dist/build/Data/Digits.o )
> /usr/bin/ld: cannot find -lHSQuickCheck-2.8.1-ghc7.8.3
>
> /usr/bin/ld: cannot find -lHStf-random-0.5-ghc7.8.3
>
> /usr/bin/ld: cannot find -lHSprimitive-0.6-ghc7.8.3
>
> /usr/bin/ld: cannot find -lHStransformers-0.4.3.0-ghc7.8.3
>
> /usr/bin/ld: cannot find -lHSrandom-1.1-ghc7.8.3
>
> collect2: error: ld returned 1 exit status
>
> Failed to install digits-0.2
>
> cabal: Error: some packages failed to install:
>
> digits-0.2 failed during the building phase. The exception was:
>
> ExitFailure 1
>
> codio@switch-grille:~/workspace$ ghc
>
> ghc: no input files
>
> Usage: For basic information, try the `--help' option.
>
> codio@switch-grille:~/workspace$ ghc --version
>
> The Glorious Glasgow Haskell Compilation System, version 7.8.3
>
> Roelof
>
>
>
>
> Roelof Wobben schreef op 15-5-2015 om 9:08:
>> Thanks,
>>
>> And if I want to import it into my project , do I then do import
>> Data.Digits ?
>>
>> Roelof
>>
>>
>> Alex Hammel schreef op 14-5-2015 om 23:25:
>>> `Data.Digits` is the name of the module. The name of the package is
>>> `digits`. Therefore: $(cabal install digits)
>>>
>>> `cabal` installs packages, which may contain many modules
>>>
>>> On Thu, 14 May 2015 at 14:14 Roelof Wobben <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>> Hello,,
>>>
>>> I want to use the module Digits which according to Hoogle is in
>>> Data.Digits
>>>
>>> But when I do cabal install Data.Digits I see this error message :
>>>
>>> cabal install Data.Digits
>>> cabal: The file does not exist 'Data.Digits'
>>>
>>> What do I do wrong ?
>>>
>>> Roelof
>>>
>>>
>>> ---
>>> Dit e-mailbericht is gecontroleerd op virussen met Avast
>>> antivirussoftware.
>>> http://www.avast.com
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected] <mailto:[email protected]>
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>>
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
>>
>> ------------------------------------------------------------------------
>> Avast logo <http://www.avast.com/>
>>
>> Dit e-mailbericht is gecontroleerd op virussen met Avast
>> antivirussoftware.
>> www.avast.com <http://www.avast.com/>
>>
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
>
> ------------------------------------------------------------------------
> Avast logo <http://www.avast.com/>
>
> Dit e-mailbericht is gecontroleerd op virussen met Avast
> antivirussoftware.
> www.avast.com <http://www.avast.com/>
>
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150515/2d1f5a07/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 83, Issue 40
*****************************************