Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default-extensions from cabal file is not taken #26

Open
kayhide opened this issue May 12, 2017 · 2 comments
Open

default-extensions from cabal file is not taken #26

kayhide opened this issue May 12, 2017 · 2 comments

Comments

@kayhide
Copy link

kayhide commented May 12, 2017

With a new stack project, this code works fine with halive.

Lib.hs

{-# LANGUAGE TupleSections #-}
module Lib
    ( someFunc
    ) where

someFunc :: IO ()
someFunc = print $ (3,) 4

But when moving the language pragma from the source file to cabal settings like:

library
  hs-source-dirs:      src
  exposed-modules:     Lib
  ...
  default-extensions:  TupleSections

Despite stack build success, halive fails to compile saying:

************************* Compilation Errors, Waiting...      *************************

src/Lib.hs:6:20: error: Illegal tuple section: use TupleSections

Is there any way to make this work?
Maybe, a way of providing default extensions to halive?

I have tried this with the head of master of this repository (a1ddda4).

Thanks.

@schell
Copy link
Contributor

schell commented May 12, 2017 via email

saschaheylik pushed a commit to saschaheylik/halive that referenced this issue Mar 18, 2021
… instead of command line arguments.

In the halive.json configuration I exposed the ability to add GHC extensions that should be loaded project-wide.
This provides a solution for lukexi#26
@saschaheylik
Copy link

I implemented a solution allowing you to set project-wide GHC extensions in a configuration file in my fork.

saschaheylik pushed a commit to saschaheylik/halive that referenced this issue Mar 21, 2021
…n instead of command line arguments.

    In the halive.json configuration I exposed the ability to add GHC extensions that should be loaded project-wide.
    This provides a solution for lukexi#26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants