bedandbreakfast needing a release

Adam Bergmark adam at bergmark.nl
Thu Sep 11 08:51:47 UTC 2014


Wow, I totally forgot about "if impl(ghc>=7.8)". That's the way to go of
course!


On Thu, Sep 11, 2014 at 12:04 AM, Herbert Valerio Riedel <hvriedel at gmail.com
> wrote:

> On 2014-09-10 at 20:41:27 +0200, Adam Bergmark wrote:
> > Hi Mike, something like this should do the trick (untested):
> >
> > ```
> > flag ghc78
> >   description:       Using GHC >= 7.8
> >   default:           True
> >
> > library
> >   if flag(ghc78)
> >     build-depends:
> >       base >= 4.7
> >       bedandbreakfast >= 5
> >   else
> >     build-depends:
> >       base < 4.7
> >       bedandbreakfast >= 4
> > ```
> >
> > This uses a non-manual flag so cabal will toggle it if it needs to.
>
> btw, why not simply use a "if impl(ghc>=7.8)" conditional w/o resorting
> to flags?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140911/94cbf23a/attachment.html>


More information about the Libraries mailing list