-
Notifications
You must be signed in to change notification settings - Fork 18
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
Comments
Tricky! Nice find.
… On May 12, 2017, at 2:02 AM, kayhide ***@***.***> wrote:
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 <a1ddda4>).
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#26>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABhbtGyWOWgJ-xnKfpf2-YkkNZ-osJ4ks5r5CASgaJpZM4NZBYF>.
|
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
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
With a new stack project, this code works fine with halive.
Lib.hs
But when moving the language pragma from the source file to cabal settings like:
Despite
stack build
success, halive fails to compile saying: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.
The text was updated successfully, but these errors were encountered: