[Haskell-cafe] Integer representation

Claude Heiland-Allen claude at mathr.co.uk
Thu Apr 19 20:09:34 UTC 2018

On 19/04/18 21:05, David Feuer wrote:
> I'm not familiar with automatic cabal flags. Could you point me to
> documentation?


> On Thu, Apr 19, 2018 at 3:01 PM, Claude Heiland-Allen
> <claude at mathr.co.uk> wrote:
>> Hi David,
>> On 19/04/18 18:13, David Feuer wrote:
>>> Is there any way to determine whether Integer comes from integer-gmp
>>> or integer-simple? I'm playing with the idea of using the underlying
>>> representation to get more compact/efficient tries, but I need to be
>>> able to find out what that representation is.
>> One way could be to use an automatic cabal flag.  With it enabled,
>> depend on integer-gmp and add hs-source-dirs to a directory containing
>> your integer-gmp implementation, with it disabled, depend on
>> integer-simple and add hs-source dirs to a directory containing your
>> integer-simple implementation.  This gives module-level control.  With
>> automatic flag I think cabal will try both and choose the setting that
>> gives the best build plan (likely corresponding to the Integer
>> implementation of your ghc).
>> Claude
>> --
>> https://mathr.co.uk
>> _______________________________________________
>> 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.


More information about the Haskell-Cafe mailing list