check-pvp

Roman Cheplyaka roma at ro-che.info
Sat Mar 1 23:04:38 UTC 2014


* Henning Thielemann <lemming at henning-thielemann.de> [2014-03-01 23:48:11+0100]
> Am 01.03.2014 23:37, schrieb Roman Cheplyaka:
> >* Henning Thielemann <lemming at henning-thielemann.de> [2014-03-01 22:31:56+0100]
> >>Am 01.03.2014 22:11, schrieb Roman Cheplyaka:
> >>
> >>>Good point. I've added 'customMain' to git repo. Let me know if it works
> >>>for you.
> >>
> >>I can't find Distribution.HaskellSuite.Compiler.customMain. :-(
> >>I pulled from master of git://github.com/haskell-suite/haskell-packages.git
> >
> >D'oh, I forgot to export it. Should be fixed now.
> 
> [6 of 8] Compiling Distribution.HaskellSuite.Compiler (
> src/Distribution/HaskellSuite/Compiler.hs,
> dist/build/Distribution/HaskellSuite/Compiler.o )
> 
> src/Distribution/HaskellSuite/Compiler.hs:21:5:
>     Not in scope: `customMain'
> 
> 
> I guess this is because it is missing from Cabal.

I applied your patch, thanks.

> Seems that I have to provide options via the optparser interface. For
> check-pvp I have chosen the GetOpt module for portability reasons.
> Can I convert GetOpt stuff to optparser?

I guess you could trick optparse-applicative into giving you the full
argument list (see the argument' parser), and then parse that using
GetOpt.

If you ask Paolo maybe he'll show a more direct way to get hold of the
argument list.

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20140302/348f9675/attachment-0001.sig>


More information about the cabal-devel mailing list