Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion benchmark/src/Main.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# OPTIONS_GHC -Wno-unused-imports -Wno-unused-local-binds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}

{-
This tool is for quantitatively evaluating the --synthesis feature
Expand Down
1 change: 0 additions & 1 deletion compiler/app/Language/Granule/Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE NamedFieldPuns #-}
module Language.Granule.Compiler where

import Control.Exception (SomeException, displayException, try)
Expand Down
1 change: 0 additions & 1 deletion compiler/src/Language/Granule/Compiler/HSCodegen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
{-# OPTIONS_GHC -Wno-typed-holes #-}
{-# LANGUAGE NamedFieldPuns #-}
module Language.Granule.Compiler.HSCodegen where

import Control.Monad
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Data/Bifunctor/Foldable.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FunctionalDependencies #-}

{- This module contains some recursion schemes designed for use with mutually
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/Language/Granule/Checker/Checker.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Checker/Coeffects.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{- Deals with coeffect resource algebras -}
{-# LANGUAGE ImplicitParams #-}

module Language.Granule.Checker.Coeffects where

Expand Down
4 changes: 0 additions & 4 deletions frontend/src/Language/Granule/Checker/Constraints.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DataKinds #-}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Checker/Constraints/SFrac.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables #-}

-- | Represents fractions with star in the solver
module Language.Granule.Checker.Constraints.SFrac where
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Checker/Constraints/SNatX.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables #-}

-- | Represents the extended natural numbers in the solver
module Language.Granule.Checker.Constraints.SNatX where
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/Language/Granule/Checker/DataTypes.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Checker/Effects.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{- Deals with effect algebras -}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
4 changes: 0 additions & 4 deletions frontend/src/Language/Granule/Checker/Kinding.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE FlexibleContexts #-}

-- | Kind checking and inference algorithms
-- | as well as the core type variable unifier
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/Language/Granule/Checker/Monad.hs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@

{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE OverloadedStrings #-}

{-# options_ghc -fno-warn-incomplete-uni-patterns #-}
{-# options_ghc -fno-warn-orphans #-}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Checker/Patterns.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ImplicitParams #-}

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Checker/Predicates.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}

-- | This module provides the representation of theorems (predicates)
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Checker/Primitives.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
-- Provides all the type information for built-ins

{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ImplicitParams #-}

-- | Primitive data types and type constructors
module Language.Granule.Checker.Primitives where
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Checker/Simplifier.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ImplicitParams #-}

-- | Simplifier for predicates (useful for error messages)
module Language.Granule.Checker.Simplifier where

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Checker/Substitution.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}

-- Provides the core functionality for substitutions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
module Language.Granule.Checker.SubstitutionContexts where

Expand Down
3 changes: 0 additions & 3 deletions frontend/src/Language/Granule/Checker/Types.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Checker/Variables.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE FlexibleContexts #-}

-- | Helpers for working with type variables in the type checker
module Language.Granule.Checker.Variables where

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Def.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RecordWildCards #-}

module Language.Granule.Syntax.Def where

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Syntax/Expr.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE InstanceSigs #-}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Syntax/FirstParameter.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Syntax/Helpers.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}

{-# options_ghc -Wno-orphans #-}
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Parser.y
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Pattern.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE LambdaCase #-}

module Language.Granule.Syntax.Pattern where

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Preprocessor.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}

module Language.Granule.Syntax.Preprocessor where

import Data.List (intercalate)
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Preprocessor/Ascii.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}

module Language.Granule.Syntax.Preprocessor.Ascii
( asciiToUnicode
, unicodeToAscii
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/Language/Granule/Syntax/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
-- Useful in debugging and error messages

{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE InstanceSigs #-}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Syntax/SecondParameter.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Syntax/Span.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}

module Language.Granule.Syntax.Span where
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Syntax/Type.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
Expand All @@ -9,7 +8,6 @@
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}

-- Syntax of types

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Synthesis/Common.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}
module Language.Granule.Synthesis.Common where

import Language.Granule.Context
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Synthesis/LinearHaskell.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# OPTIONS_GHC -Wno-unused-imports #-}

{-# LANGUAGE ScopedTypeVariables #-}

module Language.Granule.Synthesis.LinearHaskell where

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Synthesis/Monad.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}

module Language.Granule.Synthesis.Monad where

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Synthesis/RewriteHoles.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}

module Language.Granule.Synthesis.RewriteHoles
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Language/Granule/Synthesis/Synth.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wno-incomplete-patterns #-}


Expand Down
1 change: 0 additions & 1 deletion frontend/src/Language/Granule/Synthesis/SynthLinearBase.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ImplicitParams #-}
{-# OPTIONS_GHC -Wno-incomplete-patterns #-}


Expand Down
3 changes: 0 additions & 3 deletions frontend/src/Language/Granule/Utils.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PackageImports #-}

module Language.Granule.Utils where
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/hspec/Language/Granule/Checker/CheckerSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE DataKinds #-}

module Language.Granule.Checker.CheckerSpec where
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/hspec/Language/Granule/Checker/KindSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ImplicitParams #-}

module Language.Granule.Checker.KindSpec where

import Test.Hspec
Expand Down
1 change: 0 additions & 1 deletion frontend/tests/hspec/Language/Granule/Checker/MonadSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ImplicitParams #-}

module Language.Granule.Checker.MonadSpec where

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ImplicitParams #-}

module Language.Granule.Checker.SubstitutionsSpec where

import Language.Granule.Syntax.Type
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/hspec/Language/Granule/Checker/TypesSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ImplicitParams #-}

module Language.Granule.Checker.TypesSpec where

import Language.Granule.Syntax.Identifiers
Expand Down
1 change: 0 additions & 1 deletion interpreter/src/Language/Granule/Doc.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ViewPatterns #-}
module Language.Granule.Doc where

-- grdoc - Documentation generator
Expand Down
4 changes: 0 additions & 4 deletions interpreter/src/Language/Granule/Interpreter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
\_/__/
-}
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TemplateHaskell #-}

module Language.Granule.Interpreter where
Expand Down
3 changes: 0 additions & 3 deletions interpreter/src/Language/Granule/Interpreter/Desugar.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
-- Provides the desugaring step of the language

{-# LANGUAGE ViewPatterns #-}

module Language.Granule.Interpreter.Desugar where

import Language.Granule.Syntax.Def
Expand Down
5 changes: 0 additions & 5 deletions interpreter/src/Language/Granule/Interpreter/Eval.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
-- Granule interpreter
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE LambdaCase #-}


{-# options_ghc -Wno-incomplete-uni-patterns #-}

Expand Down
3 changes: 0 additions & 3 deletions repl/app/Language/Granule/Main.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE PackageImports #-}

module Main where
Expand Down
Loading
Loading