Skip to content

Standardize default extensions #1644

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

Merged
merged 4 commits into from
Jul 31, 2020
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
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Builtin.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

module Unison.Builtin
(codeLookup
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Codebase/Branch.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE PatternSynonyms #-}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE LambdaCase #-}

module Unison.Codebase.Branch.Dependencies where

Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Codebase/Causal.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Unison.Codebase.Causal where

import Unison.Prelude
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}

module Unison.Codebase.Editor.AuthorInfo where

Expand Down
5 changes: 0 additions & 5 deletions parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# Language DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# Language DeriveFoldable, DeriveTraversable #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Codebase/FileCodebase.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.Codebase.FileCodebase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE ViewPatterns #-}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE BlockArguments #-}


module Unison.Codebase.FileCodebase.SlimCopyRegenerateIndex (syncToDirectory) where
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Codebase/Runtime.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternSynonyms #-}

module Unison.Codebase.Runtime where
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Codebase/Serialization.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE RankNTypes #-}

module Unison.Codebase.Serialization where
Expand Down
3 changes: 1 addition & 2 deletions parser-typechecker/src/Unison/Codebase/Serialization/V1.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE Strict #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
{-# LANGUAGE RankNTypes #-}

module Unison.Codebase.Serialization.V1 where

Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Codebase/Watch.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE OverloadedStrings #-}

module Unison.Codebase.Watch where
Expand Down
2 changes: 1 addition & 1 deletion parser-typechecker/src/Unison/Codecs.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE PatternSynonyms, FlexibleContexts #-}
{-# LANGUAGE PatternSynonyms #-}

module Unison.Codecs where

Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/CommandLine.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}


Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/CommandLine/DisplayValues.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# Language PatternSynonyms #-}
{-# Language OverloadedStrings #-}

Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/CommandLine/InputPattern.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DoAndIfThenElse #-}


module Unison.CommandLine.InputPattern where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/CommandLine/InputPatterns.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.CommandLine.InputPatterns where
Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/CommandLine/Main.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.CommandLine.Main where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/CommandLine/OutputMessages.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{-# OPTIONS_GHC -fno-warn-partial-type-signatures #-}

{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}


Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/DeclPrinter.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ScopedTypeVariables #-}

module Unison.DeclPrinter where

Expand Down
4 changes: 0 additions & 4 deletions parser-typechecker/src/Unison/FileParser.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{-# Language DoAndIfThenElse #-}
{-# Language DeriveFunctor #-}
{-# Language DeriveTraversable #-}
{-# Language ScopedTypeVariables #-}
{-# Language TupleSections #-}
{-# Language OverloadedStrings #-}

module Unison.FileParser where
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/FileParsers.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}

module Unison.FileParsers where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Lexer.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}

Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Parser.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DoAndIfThenElse #-}

module Unison.Parser where

Expand Down
4 changes: 0 additions & 4 deletions parser-typechecker/src/Unison/PrintError.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.PrintError where
Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/Result.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}

module Unison.Result where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Runtime/ANF.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE ViewPatterns #-}
{-# Language OverloadedStrings #-}
{-# Language PatternSynonyms #-}
{-# Language ScopedTypeVariables #-}

module Unison.Runtime.ANF (optimize, fromTerm, fromTerm', term, minimizeCyclesOrCrash) where

Expand Down
4 changes: 0 additions & 4 deletions parser-typechecker/src/Unison/Runtime/IR.hs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{-# Language DeriveFoldable #-}
{-# Language DeriveFunctor #-}
{-# Language DeriveTraversable #-}
{-# Language FlexibleContexts #-}
{-# Language OverloadedStrings #-}
{-# Language PartialTypeSignatures #-}
{-# Language StrictData #-}
{-# Language TupleSections #-}
{-# Language ViewPatterns #-}
{-# Language PatternSynonyms #-}
{-# Language DoAndIfThenElse #-}

module Unison.Runtime.IR where

Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/Runtime/Rt1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
{-# Language Strict #-}
{-# Language StrictData #-}
{-# Language RankNTypes #-}
{-# Language TupleSections #-}
{-# Language PatternSynonyms #-}
{-# Language ViewPatterns #-}
{-# Language ScopedTypeVariables #-}
{-# Language DoAndIfThenElse #-}


module Unison.Runtime.Rt1 where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Runtime/Rt1IO.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}

module Unison.Runtime.Rt1IO where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/TermParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE PartialTypeSignatures #-}

module Unison.TermParser where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/TermPrinter.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.TermPrinter where
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/TypePrinter.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}

module Unison.TypePrinter where

Expand Down
5 changes: 0 additions & 5 deletions parser-typechecker/src/Unison/Typechecker.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ViewPatterns #-}

-- | This module is the primary interface to the Unison typechecker
Expand Down
7 changes: 0 additions & 7 deletions parser-typechecker/src/Unison/Typechecker/Context.hs
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}

module Unison.Typechecker.Context
Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/Typechecker/Extractor.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE ScopedTypeVariables #-}

module Unison.Typechecker.Extractor where

import Unison.Prelude hiding (whenM)
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Typechecker/TypeError.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE BangPatterns #-}

module Unison.Typechecker.TypeError where
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Typechecker/TypeVar.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# Language DeriveFunctor #-}
{-# LANGUAGE PatternSynonyms #-}

module Unison.Typechecker.TypeVar where
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/UnisonFile.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE PatternSynonyms #-}

Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Util/AnnotatedText.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Util/Bytes.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# Language FlexibleInstances #-}
{-# Language MultiParamTypeClasses #-}
{-# Language ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

Expand Down
2 changes: 0 additions & 2 deletions parser-typechecker/src/Unison/Util/Cache.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE BlockArguments #-}

module Unison.Util.Cache where

import Prelude hiding (lookup)
Expand Down
3 changes: 0 additions & 3 deletions parser-typechecker/src/Unison/Util/ColorText.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PatternSynonyms #-}

module Unison.Util.ColorText (
ColorText, Color(..), style, toANSI, toPlain, toHTML, defaultColors,
black, red, green, yellow, blue, purple, cyan, white, hiBlack, hiRed, hiGreen, hiYellow, hiBlue, hiPurple, hiCyan, hiWhite, bold, underline,
Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Util/CyclicEq.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# Language BangPatterns #-}
{-# Language Strict #-}
{-# Language StrictData #-}
{-# Language DoAndIfThenElse #-}

module Unison.Util.CyclicEq where

Expand Down
1 change: 0 additions & 1 deletion parser-typechecker/src/Unison/Util/CyclicOrd.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# Language BangPatterns #-}
{-# Language Strict #-}
{-# Language StrictData #-}
{-# Language DoAndIfThenElse #-}

module Unison.Util.CyclicOrd where

Expand Down
Loading