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.
With a new stack project, this code works fine with halive.
Lib.hs
{-# LANGUAGE TupleSections #-} module Lib ( someFunc ) where someFunc :: IO () someFunc = print $ (3,) 4But when moving the language pragma from the source file to cabal settings like:
Despite
stack buildsuccess, 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.