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:
parent
13f64afbc1
commit
57bedc0d8c
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
1
Makefile
1
Makefile
@ -97,6 +97,7 @@ ormolu:
|
||||
--ghc-opt -XMultiParamTypeClasses \
|
||||
--ghc-opt -XTemplateHaskell \
|
||||
--ghc-opt -XImportQualifiedPost \
|
||||
--ghc-opt -XBangPatterns \
|
||||
--mode ${ORMOLUMODE} \
|
||||
$(ORMOLUFILES)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user