I've never passed in parameters to happy, so I may be unaware of this
functionality being available. But to my knowledge, there's no such feature
in Stack right now. (Someone please correct me if I'm wrong.) The best way
forward would probably be to open up a feature request on Github:

https://github.com/commercialhaskell/stack/issues/new

On Thu, Dec 22, 2016 at 10:03 AM, Pierre van de Laar <
[email protected]> wrote:

> Dear Stack users,
>
> On webpage https://www.haskell.org/happy/doc/html/sec-tips.html it is
> stated
>
>> If you are using GHC, generate parsers using the -a -g -c options, and
>> compile them using GHC with the -fglasgow-exts option.
>
> I can specify the ghc options to stack using the ghc-options field in the
> .cabal file.
>
> Cabal support options for arbitrary programs (https://www.haskell.org/
> cabal/users-guide/installing-packages.html#programs-used-for-building),
> yet stack doesn't recognize happy-options:
>
> Cabal file warning in C:\Example.cabal: Unknown fields: happy-options
> (line 27)
> Fields allowed in this section:
>     exposed-modules, reexported-modules, required-signatures,
>     exposed-signatures, exposed, buildable, build-tools, build-depends,
>     cpp-options, cc-options, ld-options, pkgconfig-depends, frameworks,
>     c-sources, js-sources, default-language, other-languages,
>     default-extensions, other-extensions, extensions, extra-libraries,
>     extra-ghci-libraries, extra-lib-dirs, includes, install-includes,
>     include-dirs, hs-source-dirs, other-modules, ghc-prof-options,
>     ghcjs-prof-options, ghc-shared-options, ghcjs-shared-options,
>     ghc-options, ghcjs-options, jhc-options, hugs-options,
>     nhc98-options
>
>  Yet, how can I specify the parameters for build tools, like happy, in
> stack?
>
> Thanks in advance!
>
> Pierre
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/haskell-stack/e2079ead-7d9d-42e8-ba1a-e1dafa59f517%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/haskell-stack/e2079ead-7d9d-42e8-ba1a-e1dafa59f517%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAKA2JgJaBGjfZCfVgAmGQN%3DJ70TAECVM8TQbcp5v_vPYAzSOhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to