Skip to content

Commit

Permalink
remove unused ghc extensions from compiler (#433)
Browse files Browse the repository at this point in the history
removed unused ghc extension from the Encore compiler
  • Loading branch information
Kiko authored and EliasC committed May 23, 2016
1 parent debc170 commit 2aabbe6
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/back/CCode/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE FlexibleInstances,FlexibleContexts,MultiParamTypeClasses,StandaloneDeriving #-}
{-# LANGUAGE FlexibleInstances,MultiParamTypeClasses,StandaloneDeriving #-}

{-| Provides the CCode data type, a representation of C
programs that can be pretty-printed to sometimes-legal C code. The
Expand Down
2 changes: 1 addition & 1 deletion src/back/CCode/PrettyCCode.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE GADTs,FlexibleContexts,OverloadedStrings #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}

{-|
Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/CCodeNames.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE GADTs,FlexibleContexts #-}
{-# LANGUAGE FlexibleContexts #-}
{-|
Defines how things will be called in the CCode generated by CodeGen.hs
Provides mappings from class/method names to their C-name.
Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/ClassDecl.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

{-|
Expand Down
2 changes: 0 additions & 2 deletions src/back/CodeGen/Closure.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}

{-| Makes @Closure@ (see "AST") an instance of @Translatable@ (see "CodeGen.Typeclasses") -}
module CodeGen.Closure (
translateClosure,
Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/Expr.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances, GADTs, FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

{-| Makes @Expr@ an instance of @Translatable@ (see "CodeGen.Typeclasses") -}

Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/Function.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

{-| Makes @Function@ (see "AST") an instance of @Translatable@ (see "CodeGen.Typeclasses") -}
module CodeGen.Function where
Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/MethodDecl.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

{-| Makes @MethodDecl@ (see "AST") an instance of @Translatable@ (see "CodeGen.Typeclasses") -}
module CodeGen.MethodDecl where
Expand Down
2 changes: 0 additions & 2 deletions src/back/CodeGen/Shared.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

module CodeGen.Shared(generateShared) where

import CCode.Main
Expand Down
2 changes: 0 additions & 2 deletions src/back/CodeGen/Task.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}

module CodeGen.Task where

import CCode.Main
Expand Down
2 changes: 0 additions & 2 deletions src/back/CodeGen/Trace.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE GADTs #-}

module CodeGen.Trace (
traceVariable
, traceFuture
Expand Down
2 changes: 1 addition & 1 deletion src/back/CodeGen/Type.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances, GADTs #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}

{-| Make Type (see "AST") an instance of @Translatable@ (see
"CodeGen.Typeclasses"). -}
Expand Down
2 changes: 0 additions & 2 deletions src/types/Types.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Types(
Type
Expand Down

0 comments on commit 2aabbe6

Please sign in to comment.