1
1
mirror of https://github.com/anoma/juvix.git synced 2024-08-16 03:30:37 +03:00

Remove BangPattern pragmas (#2626)

`BangPatterns` is already enabled by
[`GHC2021`](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html#extension-GHC2021),
so it makes sense to remove the pragmas and add the corresponding flag
to ormolu
This commit is contained in:
Jan Mas Rovira 2024-02-07 12:46:13 +01:00 committed by GitHub
parent 13f64afbc1
commit 57bedc0d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 17 deletions

View File

@ -52,6 +52,7 @@ jobs:
--ghc-opt -XStandaloneDeriving
--ghc-opt -XTemplateHaskell
--ghc-opt -XUnicodeSyntax
--ghc-opt -XBangPatterns
build-and-test-linux:
runs-on: ubuntu-22.04

View File

@ -97,6 +97,7 @@ ormolu:
--ghc-opt -XMultiParamTypeClasses \
--ghc-opt -XTemplateHaskell \
--ghc-opt -XImportQualifiedPost \
--ghc-opt -XBangPatterns \
--mode ${ORMOLUMODE} \
$(ORMOLUFILES)

View File

@ -1,9 +1,3 @@
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Avoid restricted extensions" #-}
{-# HLINT ignore "Avoid restricted flags" #-}
module Juvix.Compiler.Core.Evaluator where
import Control.Exception qualified as Exception

View File

@ -1,8 +1,3 @@
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Avoid restricted extensions" #-}
{-# HLINT ignore "Avoid restricted flags" #-}
module Juvix.Compiler.Tree.Evaluator where
import Control.Exception qualified as Exception

View File

@ -1,9 +1,3 @@
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Avoid restricted extensions" #-}
{-# HLINT ignore "Avoid restricted flags" #-}
module Juvix.Prelude.Base
( module Juvix.Prelude.Base,
module Control.Applicative,